Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol interface { // Name returns the WebSocket protocol name used by the // Sec-WebSocket-Protocol header. Name() string // Run is called after the request has been upgraded and the protocol has // been negotiated with the client. Run(*http.Request, *websocket.Conn, graphql.GraphExecutor) }
Protocol is implemented by WebSocket protocols.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
Package wserr declares WebSocket error types and implements functions to pass WebSocket errors using context.
|
Package wserr declares WebSocket error types and implements functions to pass WebSocket errors using context. |
wsprotocol
|
|
graphqlws
Package graphqlws implements the graphql-ws protocol.
|
Package graphqlws implements the graphql-ws protocol. |
transportws
Package transportws implements the subscriptions-transport-ws protocol.
|
Package transportws implements the subscriptions-transport-ws protocol. |
Package wstransport implements common gqlgen WebSocket transports.
|
Package wstransport implements common gqlgen WebSocket transports. |
Package wsutil declares common types and implements some WebSocket utility functions.
|
Package wsutil declares common types and implements some WebSocket utility functions. |
Click to show internal directories.
Click to hide internal directories.