Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ server.js
File
server.js
examples/postgres-adapter-example/server.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ Server } from
"socket.io"
;
2
import
{ createAdapter } from
"@socket.io/postgres-adapter"
;
3
import
pg from
"pg"
;
4
import
process from
"node:process"
;
Callers
nothing calls this directly
Calls
4
createAdapter
Function · 0.85
listen
Method · 0.80
emit
Method · 0.65
on
Method · 0.45
Tested by
no test coverage detected