-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to use this with a different webserver? #133
Comments
I never tested it before, maybe need some tweaks. nim-websock/websock/websock.nim Line 252 in 691f069
|
I think in general it would be good to enable the possibility of multiple "protocols" on a single "http" port - ie we need this for nimbus as well since we want websockets and "regular" json-rpc to coexist without having to run two http servers (and ideally metrics and rest also) - any step towards the the possibility of mixing and matching websockets, normal http requests and also server side event streams would be good to have in general, though this would require the http server part to become extensible / pluggable - not sure what's possible today cc @cheatfate |
It shouldn't be too hard to make the HTTP part pluggable, we can replace the |
I'd like to use
websock
but just ran into this line, which forbids any HTTP method except GET:nim-websock/websock/http/server.nim
Line 52 in 691f069
I'm guessing that means you'd like the
websock
HTTP server to remain a WebSockets-only server? If that's the case, are there any examples of usingwebsock
within a different HTTP web framework (jester? chronos?)? Or would you accept a PR that allows for POST requests?The text was updated successfully, but these errors were encountered: