Skip to content
forked from albulescu/om-ws

GoLang websocket with custom binary protocol with javascript

Notifications You must be signed in to change notification settings

misaka-0x0d/om-ws

 
 

Repository files navigation

GoLang WebSocket with binary communication with JavaScript

Installation

make install make run

Communication protocol

Full packet

[                     Header                       ] [         body         ]
["om"][version:uint8][action:uint8][bodysize:uint32] [....:map[string]string]

Body packet - Key value pairs separated by [0xc0,0x80]

[key:string][0xc0,0x80][value:string][0xc0,0x80]

Look in ws.html file for JavaScript for converting from binary to js object.

Dependinces

  • github.com/gorilla/websocket
  • gopkg.in/ini.v1

About

GoLang websocket with custom binary protocol with javascript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 53.8%
  • JavaScript 37.7%
  • HTML 6.7%
  • Makefile 1.8%