Skip to content

A simple go server to stream rf ace results to a client side visualization via web sockets.

Notifications You must be signed in to change notification settings

cancerregulome/ReWebsocketServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ReWebSocketServer

This is a simple prototype and demo of a server for streaming messages to Reglome Explorer users via websockets.

Each user connects a websocket to /streamer/uniqueid and server side services can post messages to /results/uniqueid

POST request should have the message in the "results" form value.

Multipart request are not supported but can be.

Websocket server based on code from the google io demo.

Quick Start

#download and build
git clone https://github.com/cancerregulome/ReWebsocketServer.git
cd ReWebsocketServer
go get
go build

#start server
./ReWebSocketServer -hostname="localhost:23456" -contentdir="./html/"

Using and Testing

The number of concurent clients is limited by the number of open files (ulimit -n).

#open localhost:23456 in browser and conect a user named "user" (or whatever)

#post a test message to  user
cd testing
python poster.py testmsg.txt http://localhost:23456/results/user

#build test client in testing/testclient
cd testclient
go build

#connect 100 test clients named client0-client99
bash conectn.sh 200 localhost:23456

About

A simple go server to stream rf ace results to a client side visualization via web sockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 57.9%
  • Python 22.3%
  • JavaScript 18.7%
  • Shell 1.1%