SocketCluster / SocketCluster/socketcluster

Add safe mode so that SC rejects any invalid non-JSON packet

Open
#513 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6.2k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

Right now SC supports non-JSON strings sent using socket.send('This is a message').
It would be nice to add a config option so that it can be disabled and only allow valid SC JSON strings. This could make certain kinds of DoS attacks more expensive and complicated.

Contributor guide

No contributing guide indexed for this repository

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 tracing how socket.send('This is a message') is handled and where SocketCluster configuration options are defined. Determine the validation boundary and configuration behavior; done means a safe-mode setting rejects invalid non-JSON packets while valid SC JSON strings remain accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
backend, security
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.