socketio / socketio/socket.io

Private methods prevent extending the parser

Open
#5,094 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

package:socket.io-parser
Dominant language
TypeScript
Stars
63.2k
Forks
10.3k
Avg merge
11d 20h
Merged PRs (30d)
2

Description

Hi there!

I'm using the socket-io parser and trying to add a bit of functionality on top, without duplicating everything. It would be amazing if I could just extend the socket-io parser and overwrite a couple of the methods (e.g. the string parsing), but because they are all private I'm not able to. Is there any chance they could be made protected so this is possible?

Many thanks,

Oli

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the socket.io parser implementation and its string-parsing method, then inspect how the parser's private methods are declared and used. Determine the intended subclassing surface and verify that changing method visibility preserves existing parser behavior; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.