Skip to content

Instantly share code, notes, and snippets.

View opillion's full-sized avatar

micnet opillion

  • Opillion GmbH & Co. KG
  • Berlin, Germany
  • 01:51 (UTC +01:00)
View GitHub Profile
@naoki-sawada
naoki-sawada / client.js
Last active February 21, 2025 09:39
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',
},
},
},