# Type Alias ToServerTunnelMessageKind

ToServerTunnelMessageKind:
| { tag: "TunnelAck"; val: TunnelAck }
| { tag: "ToServerResponseStart"; val: ToServerResponseStart }
| { tag: "ToServerResponseChunk"; val: ToServerResponseChunk }
| { tag: "ToServerResponseAbort"; val: ToServerResponseAbort }
| { tag: "ToServerWebSocketOpen"; val: ToServerWebSocketOpen }
| { tag: "ToServerWebSocketMessage"; val: ToServerWebSocketMessage }
| { tag: "ToServerWebSocketMessageAck"; val: ToServerWebSocketMessageAck }
| { tag: "ToServerWebSocketClose"; val: ToServerWebSocketClose }

To Server

#### Type Declaration

- { tag: "TunnelAck"; val: TunnelAck }
- { tag: "ToServerResponseStart"; val: ToServerResponseStart }

  HTTP

- { tag: "ToServerResponseChunk"; val: ToServerResponseChunk }
- { tag: "ToServerResponseAbort"; val: ToServerResponseAbort }
- { tag: "ToServerWebSocketOpen"; val: ToServerWebSocketOpen }

  WebSocket

- { tag: "ToServerWebSocketMessage"; val: ToServerWebSocketMessage }
- { tag: "ToServerWebSocketMessageAck"; val: ToServerWebSocketMessageAck }
- { tag: "ToServerWebSocketClose"; val: ToServerWebSocketClose }

- Defined in index.ts:1184