Skip to content

Comments Channel (WebSocket)

This channel delivers comment events from the Openfish Gamma server. It runs on a separate service (port 3001) and does not require authentication. By default, every new comment across all markets is broadcast to connected clients.

Server: wss://gamma.openfish.fun/ws/comments (port 3001)


Direction: Client -> Server

No subscription message is strictly necessary — connecting is enough to start receiving the full comment firehose. To narrow the stream to specific markets, send a filter message:

FieldTypeRequiredDescription
marketsarray of stringsNoCondition IDs to filter. Omit for all.
typestringYesMust be "comments"
{
"markets": ["0xbd31dc8a..."],
"type": "comments"
}

Send PING every 10 seconds. Server responds with PONG.


Emitted whenever a new comment is posted on any subscribed market.

FieldTypeRequiredDescription
event_typestringYes"comment"
idstringYesComment ID
marketstringYesCondition ID
authorstringYesAuthor address or username
bodystringYesComment text
parent_idstringNoParent comment ID (for replies)
created_atstringYesISO 8601 timestamp

Sample Message:

{
"event_type": "comment",
"id": "c1d2e3f4-a5b6-7890-cdef-123456789012",
"market": "0xbd31dc8a...",
"author": "0x6e0c80c9...",
"body": "I think this will resolve Yes.",
"parent_id": null,
"created_at": "2026-04-09T15:30:00Z"
}