Skip to content

Commit 3d28229

Browse files
docs: add note about socket.id
Related: #644
1 parent d7bd2b1 commit 3d28229

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/socket.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ export class Socket extends EventEmitter {
2828
private pingTimeoutTimer;
2929
private pingIntervalTimer;
3030

31+
/**
32+
* This is the session identifier that the client will use in the subsequent HTTP requests. It must not be shared with
33+
* others parties, as it might lead to session hijacking.
34+
*
35+
* @private
36+
*/
3137
private readonly id: string;
3238

3339
get readyState() {

0 commit comments

Comments
 (0)