/stompsocket

Example web browser chat using a Go server and Javascript client, communicating using STOMP over WebSockets.

Primary LanguageGo

Chat via STOMP over WebSocket

A simple chat server and client example using Go and JavaScript.

Usage

Fetch and install the package:

go get github.com/inhies/stompsocket

Then just run stompsocket which will start a webserver on port 8080 and point your browser to http://localhost:8080 and press connect to connect to the service.

Credits

The demo program came from the source for stomp.js

The websocket code is mainly garyburd's with a wrapper to create a net.Conn from zhangpeihao.

The STOMP code is from jjeffery.

Each project is licensed under their respective licenses.