Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
The WebSocketHandler's :open() does not seem to support URL matching, like the web.RequestHandler does.
I'm writing an application that generates a token on an login page and also uses WebSockets to communicate with the server. At the moment I need to send the token to the server via websockets to authenticate the newly opened websocket, as I don't want to send my token with every request.
Supporting a syntax like the web.RequestHandler would allow me to add the websocket to the trusted list of websockets on open.
The WebSocketHandler's :open() does not seem to support URL matching, like the web.RequestHandler does. I'm writing an application that generates a token on an login page and also uses WebSockets to communicate with the server. At the moment I need to send the token to the server via websockets to authenticate the newly opened websocket, as I don't want to send my token with every request.
Supporting a syntax like the web.RequestHandler would allow me to add the websocket to the trusted list of websockets on open.