Skip to content

vb-mich/vbrat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vbrat-server

Based on https://github.com/thgh/websocket-room as alternative to websocket.in Hosted live on Heroku. This websocket server will broadcast all messages it receives to sockets connected to the same URL.

// Connect to `room-name`
const socket = connectable('wss://serveraddr:port/room-name')

// Log all messages in `room-name`
socket.subscribe(console.log)

// Send a chat message
form.onsubmit = () => socket.send(nameInput.value)

About

websocket forwarder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published