You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi kataras and other contributors.
I use Iris framework to build REST api. I also added websockets to the project. And now I got an idea to use business logic of the REST api together with my socket controller. I want to build an adapter from websocket to http handlers for reuse code.
It will much improve response time, because it will pass authentication middleware only once per connection, it will not do tcp, ssl handshaking every single request.
Socket will get a message in Iris json/binary format. Event name will be name of http (REST) route. And body of this message will be exact body for the REST.
REST handler will do BL and will write result in "virtual" context, managed by adapter. After that adapter will pass this response message to the socket. Event name of the response will be the same route of request.
I need your help to do it, and of course it will be part of iris-contrib repository.
Thanks
The text was updated successfully, but these errors were encountered:
Hi kataras and other contributors.
I use Iris framework to build REST api. I also added websockets to the project. And now I got an idea to use business logic of the REST api together with my socket controller. I want to build an adapter from websocket to http handlers for reuse code.
It will much improve response time, because it will pass authentication middleware only once per connection, it will not do tcp, ssl handshaking every single request.
Socket will get a message in Iris json/binary format. Event name will be name of http (REST) route. And body of this message will be exact body for the REST.
REST handler will do BL and will write result in "virtual" context, managed by adapter. After that adapter will pass this response message to the socket. Event name of the response will be the same route of request.
I need your help to do it, and of course it will be part of iris-contrib repository.
Thanks
The text was updated successfully, but these errors were encountered: