What are the design decisions behind Websocket API? #3164
Replies: 1 comment
-
There's always a bit of debate about how much abstraction we provide to the underlying functionality, vs how we could make it "simple" to use. In terms of the For the client/server, I think that was just because so much of the underlying code would be the same. The client side was fairly clear and simple, the server was the one that caused a bit of debate; in the end we went with the idea of 'adopting' an existing socket that would have just been provided from the ServerSocket functionality. The alternative may have needed a different (or adapted) version of ServerSocket. The main thing that the BTW, my email notification contained a bit of a different question, so if you wanted me to reply on that, please email me directly :-) thanks |
Beta Was this translation helpful? Give feedback.
-
I was curious about the design decisions involved in the new websocket api.
More specifically:
1.) why require manual sending of op codes?
2.) why condense server and client mechanisms into the same api?
Beta Was this translation helpful? Give feedback.
All reactions