Skip to content

Commit

Permalink
website: fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Dec 24, 2023
1 parent 793fd53 commit 298e00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ server.listen(port, () => {
import { io as SocketIO } from 'socket.io-client';
import { setHandler, setSocketIOInstance, socketIOHandler } from 'fe-sdk';

const apiType = `user`;
const ioInstance = SocketIO(`/`, {
transports: ['websocket'],
query: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ server.listen(port, () => {
import { io as SocketIO } from 'socket.io-client';
import { setHandler, setSocketIOInstance, socketIOHandler } from 'fe-sdk';

const apiType = `user`;
const ioInstance = SocketIO(`/`, {
transports: ['websocket'],
query: {
Expand Down

0 comments on commit 298e00e

Please sign in to comment.