-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Document the Socket.io API and try to convert it to a HTTP request #3854
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
If we do it this way, we would have to be clear on the performance expectations, I suspect having to open a new websocket connection inside the server on every api call would be quite a burden. |
I am reading socket.io's test, it seems that it is possible to create a socket object without an actual real websocket connection. |
Ah... It isn't what I thought, |
At my point, you have two possibilities to bypass this:
|
Resolves: #118
Resolves: #1210
Resolves: #1276
Resolves: #2358 (might be debatable)
Resolves: #2553 (might be debatable)
Resolves: #3060
Resolves: #3668
#1834 is staled as I think that the workload of implementing and maintaining both rest api and socket.io api is too heavy for me.
New approach:
/api
to convert a HTTP request to socket.io request/api
can use it to verify the requestOf course, the API is not as beautiful as a REST API, but for me, it is much easier for me to maintain. It should work for most "crud" actions.