peerjs-server icon indicating copy to clipboard operation
peerjs-server copied to clipboard

Vanilla http module wrapper

Open Llorx opened this issue 2 years ago • 2 comments

I have a suggestion:

Use another existant ws/HTTP server instead of express.

Express is nice, but sometimes is oversize when you just want to serve some static files and have a dumb WebSocket, so I created my own HTTP/ws server with nodejs http module and npm ws library. The problem is that I cannot share same port/server with PeerServer, as the only wrapper I can find is the express one.

Is there a way to have PeerServer working with them? If not, I suggest to add that feature.

Llorx avatar Oct 20 '21 16:10 Llorx

I'd like to try different server too .... for example Koa instead of Express ..

CICCIOSGAMINO avatar Dec 14 '21 11:12 CICCIOSGAMINO

For me I serve Express on one port for static files and Peer on another port no problems

devyaz avatar Feb 18 '22 17:02 devyaz