hden / Socketio Wildcard
Licence: mit
socket.io v2.x with a wildcard event
Stars: ✭ 185
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Socketio Wildcard
titanium-socketio
Use the native Socket.io SDK's with Axway Titanium.
Stars: ✭ 25 (-86.49%)
Mutual labels: socket-io, socketio
SocketIOUnity
A Wrapper for socket.io-client-csharp to work with Unity.
Stars: ✭ 69 (-62.7%)
Mutual labels: socket-io, socketio
SocketIOSharp
C# implementation of Socket.IO protocol revision 4 client and server.
Stars: ✭ 101 (-45.41%)
Mutual labels: socket-io, socketio
socket.io-client-core
High-Performance Socket.IO client in C#
Stars: ✭ 70 (-62.16%)
Mutual labels: socket-io, socketio
django-channels-with-socket.io
django channels with socket.io
Stars: ✭ 23 (-87.57%)
Mutual labels: socket-io, socketio
Go Socket.io
A Socket.IO backend implementation written in Go
Stars: ✭ 409 (+121.08%)
Mutual labels: socketio, socket-io
boltly
Boltly: The complete Socket.io test client!
Stars: ✭ 16 (-91.35%)
Mutual labels: socket-io, socketio
realtime-geolocation
Geolocation tracking app with Node.js, Socket.io, & AngularJS
Stars: ✭ 29 (-84.32%)
Mutual labels: socket-io, socketio
Aaronvandenberg.nl
⚛️ Web Developers portfolio build with Gatsby.js & React.js
Stars: ✭ 98 (-47.03%)
Mutual labels: socketio, socket-io
pdfdraw
Nextcloud app to annotate PDF documents
Stars: ✭ 32 (-82.7%)
Mutual labels: socket-io, socketio
Python Socketio
Python Socket.IO server and client
Stars: ✭ 2,655 (+1335.14%)
Mutual labels: socketio, socket-io
bubbly
Full stack chat application created w/ Next.js, Socket.IO, Express, React and TypeScript
Stars: ✭ 24 (-87.03%)
Mutual labels: socket-io, socketio
Socket.io Python Emitter
Python implementation of socket.io-emitter
Stars: ✭ 67 (-63.78%)
Mutual labels: socketio, socket-io
Phpsocket.io
A server side alternative implementation of socket.io in PHP based on workerman.
Stars: ✭ 2,026 (+995.14%)
Mutual labels: socketio, socket-io
Gulp Server Io
Standalone / gulp (stream) / delivery server setup with Proxy options remote debugger and more
Stars: ✭ 152 (-17.84%)
Mutual labels: socket-io
Socketio
Socket.IO Java Server based on Netty. was created to meet gaming performance requirements. battle tested and in use by Playtech Microservices API Gateway.
Stars: ✭ 166 (-10.27%)
Mutual labels: socketio
socketio-wildcard
Socket.io with a wildcard event.
Works with Socket.io v1.x
- v2.x
.
Tested with node.js v8.x
- v12.x
.
Sunsetting
As of Socket.io v2.0.4 (commit), you can use a socket middleware to catch every incoming Packet, which satisfies most of socketio-wildcard's use cases.
io.on('connection', (socket) => {
socket.use((packet, next) => {
// Handler
next();
});
});
Installation
npm install --save socketio-wildcard
Usage
Server
var io = require('socket.io')();
var middleware = require('socketio-wildcard')();
io.use(middleware);
io.on('connection', function(socket) {
socket.on('*', function(packet){
// client.emit('foo', 'bar', 'baz')
packet.data === ['foo', 'bar', 'baz']
});
});
io.listen(8000);
Server (with a namespace)
var io = require('socket.io')();
+var nsp = io.of('/namespace');
var middleware = require('socketio-wildcard')();
-io.use(middleware);
+nsp.use(middleware);
-io.on('connection', function(socket) {
+nsp.on('connection', function(socket) {
socket.on('*', function(packet){
// client.emit('foo', 'bar', 'baz')
packet.data === ['foo', 'bar', 'baz']
});
});
io.listen(8000);
Client
var io = require('socket.io-client');
var socket = io('http://localhost');
// piggyback using the event-emitter bundled with socket.io client
var patch = require('socketio-wildcard')(io.Manager);
patch(socket);
socket.on('*', function(){ /* … */ })
Changelog
[2.0.0] - 2016-05-23
- no breaking change
- update test dependencies for socket.io v2
[0.3.0] - 2015-12-21
- allow custom event emitter
- support socket.io client
[0.2.0] - 2015-11-29
- wildcard listener for all events get called first (@Michael77)
- removed coffee-script dependency
Licence
MIT
License
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].