@eleven-am/pondsocket-client 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist.d.ts +6 -6
- package/package.json +5 -5
package/dist.d.ts
CHANGED
|
@@ -31,38 +31,38 @@ declare class Channel<EventMap extends PondEventMap = PondEventMap, Presence ext
|
|
|
31
31
|
* @desc Monitors the channel for messages.
|
|
32
32
|
* @param callback - The callback to call when a message is received.
|
|
33
33
|
*/
|
|
34
|
-
onMessage<Event extends keyof EventMap> (callback: (event: Event, message: EventMap[Event]) => void):
|
|
34
|
+
onMessage<Event extends keyof EventMap> (callback: (event: Event, message: EventMap[Event]) => void): Unsubscribe;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @desc Monitors the channel for messages.
|
|
38
38
|
* @param event - The event to monitor.
|
|
39
39
|
* @param callback - The callback to call when a message is received.
|
|
40
40
|
*/
|
|
41
|
-
onMessageEvent<Event extends keyof EventMap> (event: Event, callback: (message: EventMap[Event]) => void):
|
|
41
|
+
onMessageEvent<Event extends keyof EventMap> (event: Event, callback: (message: EventMap[Event]) => void): Unsubscribe;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @desc Monitors the channel state of the channel.
|
|
45
45
|
* @param callback - The callback to call when the connection state changes.
|
|
46
46
|
*/
|
|
47
|
-
onChannelStateChange (callback: (connected: ChannelState) => void):
|
|
47
|
+
onChannelStateChange (callback: (connected: ChannelState) => void): Unsubscribe;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @desc Detects when clients join the channel.
|
|
51
51
|
* @param callback - The callback to call when a client joins the channel.
|
|
52
52
|
*/
|
|
53
|
-
onJoin (callback: (presence: Presence) => void):
|
|
53
|
+
onJoin (callback: (presence: Presence) => void): Unsubscribe;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* @desc Detects when clients leave the channel.
|
|
57
57
|
* @param callback - The callback to call when a client leaves the channel.
|
|
58
58
|
*/
|
|
59
|
-
onLeave (callback: (presence: Presence) => void):
|
|
59
|
+
onLeave (callback: (presence: Presence) => void): Unsubscribe;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* @desc Detects when clients change their presence in the channel.
|
|
63
63
|
* @param callback - The callback to call when a client changes their presence in the channel.
|
|
64
64
|
*/
|
|
65
|
-
onPresenceChange (callback: (presence: PresencePayload<Presence>) => void):
|
|
65
|
+
onPresenceChange (callback: (presence: PresencePayload<Presence>) => void): Unsubscribe;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @desc Sends a message to specific clients in the channel.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eleven-am/pondsocket-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "PondSocket is a fast simple socket server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"socket",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"pipeline": "npm run test && npm run build && npm run push"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eleven-am/pondsocket-common": "^0.0.
|
|
32
|
+
"@eleven-am/pondsocket-common": "^0.0.10",
|
|
33
33
|
"websocket": "^1.0.34"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/jest": "^29.5.11",
|
|
37
37
|
"@types/websocket": "^1.0.10",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
39
39
|
"eslint-plugin-file-progress": "^1.3.0",
|
|
40
40
|
"eslint-plugin-import": "^2.29.1",
|
|
41
41
|
"jest": "^29.7.0",
|
|
42
|
-
"prettier": "^3.
|
|
43
|
-
"supertest": "^6.3.
|
|
42
|
+
"prettier": "^3.2.4",
|
|
43
|
+
"supertest": "^6.3.4",
|
|
44
44
|
"ts-jest": "^29.1.1",
|
|
45
45
|
"ts-loader": "^9.5.1",
|
|
46
46
|
"ts-node": "^10.9.2",
|