Working with WebSockets

WebSockets allow a server application to connect to a web-based client written in JavaScript. This allows you to create web applications with two-way communication and to create updates such as chat rooms and more.

This recipe will explore writing a WebSocket server in Go and also demonstrate the process of a client consuming and communicating with a WebSocket server. It uses github.com/gorilla/websocket to upgrade a standard handler into a WebSocket handler and also to create the client application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.125.171