Skip to content

Instantly share code, notes, and snippets.

View enriqueb721's full-sized avatar
:shipit:

Enrique enriqueb721

:shipit:
View GitHub Profile
@naoki-sawada
naoki-sawada / client.js
Last active May 2, 2024 16:11
Simple socket.io room and auth example
const io = require('socket.io-client');
const socket = io('http://localhost:3000', {
transportOptions: {
polling: {
extraHeaders: {
'Authorization': 'Bearer abc',
},
},
},