Skip to content

Commit

Permalink
feat: update example server
Browse files Browse the repository at this point in the history
  • Loading branch information
Baiguoshuai1 committed Mar 18, 2023
1 parent dffde9d commit bef7330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const { Server } = require("socket.io");
const customParser = require('socket.io-msgpack-parser');

const io = new Server(2233, {
// parser: customParser
// parser: customParser // enable binary msg
});

io.on("connection", (socket) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { Server } = require("socket.io");
const customParser = require('socket.io-msgpack-parser');

const io = new Server(2233, {
// parser: customParser
// parser: customParser // enable binary msg
});

io.on("connection", (socket) => {
Expand Down

0 comments on commit bef7330

Please sign in to comment.