Skip to content
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

Create a Wrapper around SocketIO-Client #103

Open
mukkachaitanya opened this issue Nov 16, 2018 · 0 comments
Open

Create a Wrapper around SocketIO-Client #103

mukkachaitanya opened this issue Nov 16, 2018 · 0 comments

Comments

@mukkachaitanya
Copy link
Collaborator

Description

Tries to solve #25 in the new codebase. The wrapper needs to wrap around the Socket-IO client to provide a unified interface to timeout for any emitted event.

The interface provides the following functionality :

  1. A constructor which takes and connects to a url.
  2. Functions for each module (for examle eval) which take the paramters for emiting.
    • A possible interface would look like socketWrapper.eval(params)
  3. Each of the function of the iterface will return an object of the same type (null if error), hence allowing the user to chain functions on the same.

Steps to Reproduce

Any socket emmision will wait infinitely if the server never returns after connection.

Expected behavior:

The socket to timeout after a specified amount of time.

Actual behavior:

The socket waits for an event.

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

No branches or pull requests

1 participant