All Projects → SimonWaldherr → Gorealtimeweb

SimonWaldherr / Gorealtimeweb

Licence: mit
Examples how to write realtime web applications in Golang

Programming Languages

go
31211 projects - #10 most used programming language

GoRealtimeWeb

Flattr donate button

Examples how to write realtime web applications in Golang

This repository contains examples for the following real-time implementations:

Most of the long polling systems close the connection after each transmission from the server, with the help of oboe.js this example can handle multiple messages from the server in realtime without closing/reconnecting.

howto

  1. install dependencies go get golang.org/x/net/websocket
  2. run the go script go run realtimeweb.go
  3. open http://localhost:8000 and choose an example
  4. connect to localhost port 8001 via telnet (telnet localhost 8001)
  5. have fun

info

for more informations about real-time technologies you can read this excelent stackoverflow article (AJAX vs Long-Polling vs SSE vs Websockets vs Comet).

license

MIT (see LICENSE file)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].