You are not logged in.
Is it possible to know if a connection is websocket upgraded when executing an interface call? (other authentication is not need in such case, it happens on websocket upgrade)
or, can I allow only websocket upgraded connections to an inteface?
Is it stored somehow in ServiceRunningContext.request?
Thank you in advance
Offline
I would do this check in a OnBeforeBody callback.
That is, abort any request outside of a WebSockets upgrade on some URIs.
Otherwise, you have the llfWebsockets flag which is available in LowLevelConnectionFlags from ServiceRunningContext.request.Call IIRC.
Offline
thanks a lot @ab
Offline