rikulo/stream

Allow to map Web Socket directly without invoking WebSocketTransformer explicitly

Closed this issue · 1 comments

If the URI starts with ws:, the server shall upgrade the request to an instance of WebSocket (dart:io) automatically. For example,

new StreamServer(uriMapping: {
  socket.listen((evt) {
    socket.add("Server received: $evt");
  });
  return socket.done;
}).start();

Ready in 5eed2e4