Installs into .claude/skills of the current project.
Are you the author of Server Socket?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/owlmeans-server-socket-common)
---
name: server-socket
description: Bind OwlMeans socket protocol declarations to Fastify WebSocket handlers.
---
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
# Socket protocol handlers
**Install:** `bun add @owlmeans/server-socket@^0.1.18-rc.55`
Declare a socket route and its contract in the shared protocol package. Bind it on the server with
`connection()` and `bind()`.
```ts
import { bind } from '@owlmeans/server-entrypoint'
import { connection } from '@owlmeans/server-socket'
export const serverBindings = [
bind(streamProtocols.watch, connection(streamProtocols.watch,
async (connection, context, request) => {
await connection.send({ type: 'ready' })
}
)),
]
```
The handler receives a typed connection, context, request and response boundary. Guards and gates
are inherited from the protocol tree and enforced before the WebSocket handler runs. Do not expose
Fastify request objects through a shared contract.