Skip to content

socket-io (client): Developing a SocketIO Client #31

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

Open
njones opened this issue Aug 27, 2022 · 0 comments
Open

socket-io (client): Developing a SocketIO Client #31

njones opened this issue Aug 27, 2022 · 0 comments
Labels

Comments

@njones
Copy link
Owner

njones commented Aug 27, 2022

Proposal: Adding a SocketIO Client

Author(s): Nika Jones (@njones)

Last updated: 2022-Aug-27

Abstract

The SocketIO library should have a client developed alongside the server. This will allow backend services developed in Go the ability to call any SocketIO server implementation.

Background

Although the general SocketIO client use case is from a browser, which can't natively run Go. However there are lots of situations where a backend service could use a client to talk to a SocketIO server.

Examples:

  • The server is forwarding chat messages or used as a bot for a chat service
  • Testing of a SocketIO service

Proposal

Create a Client object. (The zero defaults should be valid)

client = NewClient(options...) <*Client>

or

client = &Client{} 

Rationale

The simplest Client is one that can have .On and .Emit with a Dialer that can have any transport necessary.

Implementation

  1. Create the client object
  2. Flesh out the OnConnect, OnDisconnect, On and Emit handlers
  3. Make sure that a replacement Transport or Dialer works
  4. Test the client
  5. Release
@njones njones changed the title [Proposal] Developing a SocketIO Client socket-io (client): Developing a SocketIO Client Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant