simpatico

Websocket

pathlab / websocket
datetitletagsdescription
2026-10-01Secure WebSocket TestExercising the secure websocket client against the server.
2025-09-04SHA-256 Proof of WorkThis document implements a complete SHA-256 based proof-of-work system in the browser. The system asks clients to find a nonce such that when combined with a challenge string and hashed with SHA-256, the result has a spe
2025-08-29WebCryptoIn recent months WebCrypto has gained X25519 asymmetric functions, and so has node 24+.
2025-08-28EncodingsThe question of which encoding to use and when is a surprisingly complex topic in the context of writing a secure socket protocol. In particular, there is an asymmetry with data that originates as uint8array and that whi
2025-08-28NaClA keypair and Diffie-Hellman walkthrough using tweetnacl instead of the WebCrypto API.
2025-08-27Secure WebSocketA secure websocket encrypts all messages such that the server cannot read them. The server in this scenario verifies clients and routes messages between connected clients.
2025-08-27Simple WebSocketA websocket is a browser-provided class that takes an endpoint string and provides a persistent object with 4 events (open, message, close, error) and 2 methods (send, close). In this example we wrap the browser websocke
2025-08-27WebSocket SimpleexercisesA promise-based websocket facade, simple but with rough edges around message structure and asynchronous construction.
2025-05-04Callback-based WebSocketcallback-basedA websocket built from callbacks, with encryption on top of the crypto primitives.
2025-05-04FSM-based WebSocketfsm-basedModeling the websocket handshake and message flow as a finite state machine.
2025-05-04Protocol-based WebSocket Authprotocol-basedA websocket auth exercise expressed as an explicit message protocol.
2025-05-04Simpatico Socketstree-basedThe stree-based implementation of the secure socket protocol.
2025-05-04WebSocket BasicsexercisesExercising the basic WebSocket API.