jstp / node-jstp

JSTP implementation in Node.js
2 stars 2 forks source link

Automatic WS server API #12

Open xaviervia opened 11 years ago

xaviervia commented 11 years ago

While Websockets are used more oftenly in the context of Web Apps where an HTTP server is already available, node-jstp users will benefit for getting an API for node-jstp to start the HTTP by itself if a port number, and not an HTTP server, is provided.

jstp.listen({
  ws: 8000
});
xaviervia commented 11 years ago

Also: afterwards, the user should be able to get the initialized HTTP server