Files
simplexmq/spec/modules/Simplex/Messaging/Transport/WebSockets.md
Evgeny @ SimpleX Chat 35d4065f32 specs for transport
2026-03-11 17:52:57 +00:00

649 B

Simplex.Messaging.Transport.WebSockets

WebSocket transport implementation over TLS, with strict message framing.

Source: Transport/WebSockets.hs

cGet — strict size check (unlike TLS)

cGet throws TEBadBlock if the received WebSocket message length doesn't equal n. This differs from the TLS cGet which uses getBuffered to accumulate partial reads.

WebSocket options

  • connectionCompressionOptions = NoCompression
  • connectionFramePayloadSizeLimit = SizeLimit $ fromIntegral smpBlockSize (16384)
  • connectionMessageDataSizeLimit = SizeLimit 65536