How can I send messages to the web server, you can give me code?