Skip to content

Create a Wrapper around SocketIO-Client #103

Description

@mukkachaitanya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions