Skip to content

mikedewar/post2ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

post2ws

Runs an http server on :5000 that you can POST to. Every POST is broadcast on a websocket your client can connect to.

To post, curl localhost:5000 -d'what ho!'.

To connect to the websocket, in javscript

var ws = new WebSocket("ws://localhost:5000")
ws.onmessage = function(msg){console.log(msg)}

About

a simple CLI webserver that accepts a POST and publishes over a websocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages