We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fd419 commit d7887a0Copy full SHA for d7887a0
1 file changed
src/main.ts
@@ -91,7 +91,7 @@ const sendActionToSocket =
91
return
92
}
93
94
- const data = serializeAction(action)
+ const data = JSON.stringify(action)
95
96
const { action: actionName, ...actionArgs } = action
97
@@ -151,7 +151,7 @@ const server = createServer((socket) => {
151
for (const msg of messages) {
152
if (!msg) return
153
try {
154
- const message: ActionClientToServer | ActionUtility = stringToJson(msg)
+ const message: ActionClientToServer | ActionUtility = JSON.parse(msg)
155
const { action, ...actionArgs } = message
156
157
if (action !== 'keepAlive' && action !== 'keepAliveAck') {
0 commit comments