APIChat
WebSocket konwersacji
Przekazuje żądanie upgrade do Durable Object CHAT_DO (userId i conversationId jako parametry). Po sukcesie 101 Switching Protocols z ramkami JSON.
GET
Przekazuje żądanie upgrade do Durable Object CHAT_DO (userId i conversationId jako parametry). Po sukcesie 101 Switching Protocols z ramkami JSON.
sessionAuthcookie
better-auth.session_token<token>Better Auth session cookie (on HTTPS: __Secure-better-auth.session_token), forwarded to the login server's /api/auth/get-session
id*stringPrzejście na protokół WebSocket (ramki JSON: message, messages_read).
curl -X GET 'https://example.com/api/chat/string/ws'Example Response
Empty