25.02.2017 Views

Isomorphic Go

gci17_isomorphic_go

gci17_isomorphic_go

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Go</strong>rilla Websocket Client/Server Example<br />

https://github.com/gorilla/websocket<br />

<strong>Go</strong>rilla WebSocket implements the WebSocket protocol in <strong>Go</strong><br />

Let’s examine their websocket client/server example:<br />

https://github.com/gorilla/websocket/tree/master/examples/echo<br />

The server echoes messages sent to it by the client. The client<br />

sends a message (in this example it is a timestamp) every second<br />

and prints all messages received from the server.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!