Custom Events
Party Social allows developers to emit their own events for extended functionality.
Emit
socket.emit('custom', { test: true })Receive
socket.on('custom', data => {
// { test: true }
})Best Practices for Custom Events
Last updated