Talk:WebSocket

To-do list for WebSocket: edit · history · watch · refresh · Updated 2025-08-28

Talk:WebSocket

NAT

Most computers have a NAT address. Websocket seems to work at public IP addresses but not when the server is behind NAT with port forwarding, which does work with http servers behind NAT. — Preceding unsigned comment added by 75.130.143.161 (talk) 17:04, 28 March 2020 (UTC)Reply

When you say it does not work, do you mean it does not work at all, ever, to do a WebSocket connection to a server behind a NAT, or that the connection stops working after awhile? — Preceding unsigned comment added by 82.99.11.116 (talk) 12:01, 4 March 2021 (UTC)Reply

Remove historical info like drafts-info and their proxy problems, or at least move it to a Historical chapter?

The standard was set in 2011, that is, 10 years ago. To high light which implementations support pre-standard drafts must be of extremely low value from 2021 and onwards and only clutters the page. Discussions about so old pre-standard draft versions and their problems and changes vs the established standard is of course information in itself, but shouldn't a general Wikipedia page about WebSocket protocol skip such old unimportant historic aspects given that the standard is 10 years old and stable since long?

There is also a part in the Proxy Chapter discussing problems with draft implementations which could be removed. It probably only complicates understanding more than it actually explains — Preceding unsigned comment added by 82.99.11.116 (talk) 11:53, 4 March 2021 (UTC)Reply

Add simple implementation inline (e.g. Python)

I believe the WebSocket protocol is not too complicated, which means it shouldn't be too bad to add a full implementation in, let's say, Python.

I'm not sure to what extent or how broad it should be.

I think two simple client and server code blocks should suffice. Dewycube (talk) 00:09, 9 April 2024 (UTC)Reply

Change opcode text

In the Opcodes table we say:

> The payload is optional, but if present, it must start with a two-byte big-endian unsigned integer reason code,

The "reason code" later is referred to as Status codes. It's not always easy to mentally connect "reason code" with "status code". The spec uses the term status code. I suggest changing the text to something like "it must start with a two-byte big-endian unsigned integer status code". Bibhas22 (talk) 16:44, 7 January 2025 (UTC)Reply

No objection from me. Go ahead and make the edit yourself if you want. –Novem Linguae (talk) 16:53, 7 January 2025 (UTC)Reply
I support your suggestion. It has been a few months since your comment, so I changed it myself. Connoisseurship (talk) 14:48, 2 May 2025 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.