question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Websocket convention is more intuitive from the point of the Receiver

See original GitHub issue

Currently websockets on 0.18 are

read -> Sends messages to the RealWorld™ write -> Receives messages from RealWorld™

This is pretty backwards. Most people writing websocket services think of it from the point of the server.

@ChristopherDavenport Had a good convention for this:

read -> serverWrite or maybe serverEmit write -> serverRead

This is a simple rename, but should also be accompanied by it being noted in the scaladoc.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rossabakercommented, Dec 17, 2017

Alright. @rsoeldner, PR would be appreciated. 😃

0reactions
cquirozcommented, Dec 17, 2017

@rossabaker 👍 for a shared client/server model

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebSockets - A Conceptual Deep Dive
The WebSocket protocol created new possibilities for communication over the Internet and opened the door to a truly realtime web.
Read more >
What is WebSocket and How It Works? ⚙️
WebSocket are an essential client-server communication tool and one needs to be fully aware of its utility and avoid scenarios to benefit from...
Read more >
Video Streaming Over Full Duplex Network Using ...
Abstract—This paper, describes the use of websocket for video streaming, which enables a two-way communication between clients in a.
Read more >
Writing WebSocket servers - Web APIs | MDN
A WebSocket server is nothing more than an application listening on any port of a TCP server that follows a specific protocol.
Read more >
A JSON event-based convention for WebSockets
Be amazed by the wonderful world of WebSockets by creating your own JavaScript-based chat client.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found