Skip to content

WebSocketRole

WebSocketRole = "client" | "server"

Defined in: packages/format-websocket/src/frame/websocket-frame.ts:63

Which end of the connection the codec serves.

A client masks every frame it sends and must receive none masked; a server is the opposite (RFC 6455 §5.1).