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
- Host: GitHub
- URL: https://github.com/raycad/go-websocket
- Owner: raycad
- Created: 2017-10-07T06:44:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T03:54:06.000Z (over 8 years ago)
- Last Synced: 2025-04-15T09:06:55.518Z (9 months ago)
- Topics: golang, websocket
- Language: Go
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```