Closed issackelly closed 8 years ago
I've got the following code, and it will open and immediately close the websocket connection.
@sockets.route('/sockets/<channel>') def echo_socket(ws): while True: message = ws.receive() ws.send(message)
Not quite sure if this is a feature request or a bug, but I think that WS routes should be able to accept flask route patterns.
In case you missed it, there's a PR over here to allow this behavior https://github.com/kennethreitz/flask-sockets/pull/18
Thanks!
This is now supported!
:+1:
I've got the following code, and it will open and immediately close the websocket connection.
Not quite sure if this is a feature request or a bug, but I think that WS routes should be able to accept flask route patterns.