Skip to content

Feature: add socket io support#640

Merged
liyasthomas merged 3 commits intohoppscotch:masterfrom
moonrailgun:feature/socketio
Mar 4, 2020
Merged

Feature: add socket io support#640
liyasthomas merged 3 commits intohoppscotch:masterfrom
moonrailgun:feature/socketio

Conversation

@moonrailgun
Copy link
Copy Markdown
Contributor

@moonrailgun moonrailgun commented Mar 4, 2020

Add Socket.IO support, resolves #611

Now is a simple implement , more feature will be append soon.

Pick up some function to separate file, please check it.

By the way, i have not found a public socketio server as a default value, is any good idea to improve it?

and modify some websocket and sse code to pick up common function and component
@ghost
Copy link
Copy Markdown

ghost commented Mar 4, 2020

DeepCode's analysis on #6a9672 found:

  • 0 critical issues. ⚠️ 0 warnings and 2 minor issues. ✔️ 0 issues were fixed.

💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


☺️ If you want to provide feedback on our bot, here is how to contact us.

@TravisBuddy
Copy link
Copy Markdown

Hey @moonrailgun,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 999f8110-5de6-11ea-8706-0d65ca3fb05e

@liyasthomas
Copy link
Copy Markdown
Member

liyasthomas commented Mar 4, 2020

@moonrailgun thanks for the quick PR 🎉

https://amritb.github.io/socketio-client-tool/ fyi this open source tool is feature rich! We can make use of this for future features.

We should allow http/https protocols other than ws/wss for Socket.io endpoints. For ex: https://socket-io-chat.now.sh/ is an socker.io endpoint which will be rejected by current URL validation. Without the https protocol, it works fine though.

By the way, I couldn't find a public socket.io endpoint for default value. Anyways, we'll add that later.

Copy link
Copy Markdown
Member

@liyasthomas liyasthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good to me.

@TravisBuddy
Copy link
Copy Markdown

Hey @moonrailgun,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: c8f12800-5e00-11ea-8706-0d65ca3fb05e

@liyasthomas liyasthomas self-requested a review March 4, 2020 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support SocketIO connections on Realtime page

3 participants