Skip to content

socket-io: Update the SocketID to work with a user defined prefix #74

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 Apr 18, 2023 · 0 comments
Open

socket-io: Update the SocketID to work with a user defined prefix #74

njones opened this issue Apr 18, 2023 · 0 comments
Labels

Comments

@njones
Copy link
Owner

njones commented Apr 18, 2023

Currently the SocketID has a generated prefix from one source. In order to allow custom prefixes the ID should contain two parts the ID and the Prefix. This way there can't be custom generators that can generate fake-able ID's in the system. The two parts could look like something as simple as:

type ID struct { prefix, id string } 

This needs to be threaded throughout the system, and must convert to a String() for logging and debugging.

@njones njones changed the title Update the SocketID to work with a user defined prefix socket-io: Update the SocketID to work with a user defined prefix 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