Can I Use WebSocket with Grapevine? #67
Unanswered
scottoffen
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi, Thank you for your response. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
User @seikosantana asked about WebSocket support in Grapevine 5.
The short answer is I think so. I'm not well versed on WebSocket, so there might be a better way to implement this, but here is the approach from what I understand about WebSocket.
In your route, you will need to cast the
IHttpContext
argument to the concrete classHttpContext
, and you will find on that class theAdvanced
property. This property is the underlyingHttpListenerContext
for this request, which means you can access theAcceptWebSocketAsync
method.I'm open to suggestions on how to improve the experience here, but unless I can get some rather quick and concrete feedback, this is how it will be for the v5 release.
Beta Was this translation helpful? Give feedback.
All reactions