docs: websocket formatting, and added globals.