Skip to content

Commit 5450fd9

Browse files
authored
fix: Add missing boilerplate to WebSocketService (#3464)
This adds the missing `name` and `state` properties to `WebSocketService`, enabling initialisation through the controller init pattern in the clients.
1 parent 728e3f7 commit 5450fd9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"branches": 95.22,
33
"functions": 98.72,
4-
"lines": 98.87,
4+
"lines": 98.88,
55
"statements": 98.71
66
}

packages/snaps-controllers/src/websocket/WebSocketService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ type InternalSocket = {
8383
};
8484

8585
export class WebSocketService {
86+
name: typeof serviceName = serviceName;
87+
88+
state = null;
89+
8690
readonly #messenger: WebSocketServiceMessenger;
8791

8892
readonly #sockets: Map<string, InternalSocket>;

0 commit comments

Comments
 (0)