opera22 / golang-websocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WS Server in Golang

A crude implementation of a WS server in Golang.

It supports two kinds of payloads: {"kind": "ping"} and {"kind": "chat", "content": "blahblah"}.

Kind == "ping" does a "pong" reply.

Kind == "chat" does a broadcast to all connected clients.

Example logs: logs.png

About


Languages

Language:Go 100.0%