Skip to content

Commit 4362a2d

Browse files
committed
🎉 feat(websocket); parse array
1 parent 4ad6246 commit 4362a2d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
# 1.2.23 - 25 Feb 2025
2+
Bug fix:
3+
- [#1087](https://github.com/elysiajs/elysia/pull/1087) websocket to parse string array
4+
15
# 1.2.22 - 24 Feb 2025
2-
Bug fix
6+
Bug fix:
37
- [#1074](https://github.com/elysiajs/elysia/pull/1074) hasTransform doesn't detect Transform on root
48
- [#873](https://github.com/elysiajs/elysia/issues/873#issuecomment-2676628776) encode before type check
59

src/ws/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export const createWSMessageParser = (
206206
if (typeof message === 'string') {
207207
const start = message?.charCodeAt(0)
208208

209-
if (start === 34 || start === 91 || start === 123)
209+
if (start === 34 || start === 47 || start === 91 || start === 123)
210210
try {
211211
message = JSON.parse(message)
212212
} catch {

0 commit comments

Comments
 (0)