An open API service indexing awesome lists of open source software.

https://github.com/raycad/go-websocket

Websocket example for Golang
https://github.com/raycad/go-websocket

golang websocket

Last synced: 5 months ago
JSON representation

Websocket example for Golang

Awesome Lists containing this project

README

          

A realtime distributed messaging platform

https://github.com/nsqio/nsq

**1. Install packages**

```
$ go get github.com/gorilla/websocket
$ go get github.com/shirou/gopsutil/mem
```

**2. Run Go Websocket server**

```
$ cd go-ws-server
$ go run
```

**3. Start NodeJS Websocket client**

```
$ cd node-ws-client
$ npm install
$ node main.js
```

**4. Get server statistics information**

```
http://127.0.0.1:2706/stats
```