Skip to content

Commit

Permalink
docs: update websocket example
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Jan 16, 2024
1 parent 65c33e7 commit c01a129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/examples/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const store = {
connected: false,
currentUserId: '112233'
}
const ws = new WebSocket('wx://localhost:5173/socket/chat')
const ws = new WebSocket('ws://localhost:5173/socket/chat')
ws.addEventListener('open', () => {
store.connected = true
// heartbeat
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const store = {
connected: false,
currentUserId: '112233'
}
const ws = new WebSocket('wx://localhost:5173/socket/chat')
const ws = new WebSocket('ws://localhost:5173/socket/chat')
ws.addEventListener('open', () => {
store.connected = true
// heartbeat
Expand Down

0 comments on commit c01a129

Please sign in to comment.