All Projects → socketio → socket.io-msgpack-parser

socketio / socket.io-msgpack-parser

Licence: MIT license
socket.io parser based on msgpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to socket.io-msgpack-parser

opentelemetry-ext-js
js extensions for the open-telemetry project
Stars: ✭ 122 (+212.82%)
Mutual labels:  socket-io
sds
Socket Delivery Server
Stars: ✭ 30 (-23.08%)
Mutual labels:  socket-io
vue-element-admin-fastapi
vue-element-admin-fastapi
Stars: ✭ 145 (+271.79%)
Mutual labels:  socket-io
Video-Chat
Video calling and chatting app (PWA) built using React.js, Web RTC and Socket.io
Stars: ✭ 305 (+682.05%)
Mutual labels:  socket-io
angular2-sails
An angular module for using the sails socket.io api in angular2 (@angular)
Stars: ✭ 37 (-5.13%)
Mutual labels:  socket-io
boss
React+express+sock.io+mongodb build a boss
Stars: ✭ 25 (-35.9%)
Mutual labels:  socket-io
FlyingChat
即时聊天系统
Stars: ✭ 26 (-33.33%)
Mutual labels:  socket-io
odin
Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python
Stars: ✭ 24 (-38.46%)
Mutual labels:  msgpack
zerorpc-dotnet
A .NET implementation of ZeroRPC
Stars: ✭ 21 (-46.15%)
Mutual labels:  msgpack
myChat
MyChat es una aplicación de mensajería en tiempo real con servidores de Discord (similar a un canal de Discord).
Stars: ✭ 30 (-23.08%)
Mutual labels:  socket-io
TweetMigration
A WebGL heatmap of global Twitter activity
Stars: ✭ 42 (+7.69%)
Mutual labels:  socket-io
react-webrtc-chat
React WebRTC chat
Stars: ✭ 39 (+0%)
Mutual labels:  socket-io
what-the-pack
Ultra-fast MessagePack for NodeJS & Browsers | msgpack.org[Javascript/NodeJS]
Stars: ✭ 36 (-7.69%)
Mutual labels:  msgpack
ormsgpack
Msgpack serialization/deserialization library for Python, written in Rust using PyO3 and rust-msgpack. Reboot of orjson. msgpack.org[Python]
Stars: ✭ 88 (+125.64%)
Mutual labels:  msgpack
boltly
Boltly: The complete Socket.io test client!
Stars: ✭ 16 (-58.97%)
Mutual labels:  socket-io
cq
Clojure Command-line Data Processor for JSON, YAML, EDN, XML and more
Stars: ✭ 111 (+184.62%)
Mutual labels:  msgpack
pandas-msgpack
Pandas Msgpack
Stars: ✭ 22 (-43.59%)
Mutual labels:  msgpack
TelegramClone
JetGram is an open source desktop app Telegram clone made with JavaFx.
Stars: ✭ 50 (+28.21%)
Mutual labels:  socket-io
React-Native-Chat-App
A simple chatting app built with React Native, Socket.io, ExpressJS and MongoDB. The server app provides APIs for authentication, message sending and receiving. In the client app React-Native-Gifted-Chat is used for the chat interface.
Stars: ✭ 22 (-43.59%)
Mutual labels:  socket-io
v chat sdk
official sdk for v chat this is a complete chat ecosystem use flutter for clint node js and socket io for server side flutter chat v chat sdk and flutter group chat
Stars: ✭ 25 (-35.9%)
Mutual labels:  socket-io

socket.io-msgpack-parser

An alternative to the default socket.io-parser, encoding and decoding packets with msgpack.

With that parser, the browser build will be a bit heavier (an additional 7.5 KB minified, 3.0 KB gzipped), but each message will be smaller (sent as binary).

Please note that you MUST use the parser on both sides (server & client).

See also:

Compatibility table:

Parser version Socket.IO server version
2.x 1.x / 2.x
3.x 3.x / 4.x

Usage

const io = require('socket.io');
const ioc = require('socket.io-client');
const customParser = require('socket.io-msgpack-parser');

const server = io(PORT, {
  parser: customParser
});

const socket = ioc('ws://localhost:' + PORT, {
  parser: customParser
});

socket.on('connect', () => {
  socket.emit('hello');
});

Format

socket.emit('hello', 'you') will create the following packet:

{
  "type": 2,
  "nsp": "/",
  "data": ["hello", "you"]
}

which will be encoded by the parser as:

<Buffer 83 a4 74 79 70 65 02 a3 6e 73 70 a1 2f a4 64 61 74 61 92 a5 68 65 6c 6c 6f a3 79 6f 75>

More information about the exchange protocol can be found here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].