Open wuminzhe opened 4 months ago
Interesting. Do you mind describing a bit more about your computer?
Interesting. Do you mind describing a bit more about your computer?
I run the program in ubuntu which is running inside windows 11 wsl2.
I'll try it in macos.
It sounds like the connection could be disconnected, but the disconnection is not reported correctly.
macos has no such problem. my macos version is 14.5
Thanks for your report. I'll check if I can reproduce it on native Linux.
@ioquatix Thanks for the your great gems. They made it easy for me to make an elegant websocket json-rpc client. But I'm not quite sure if I'm using them correctly. Can you have a look?
The websocket client https://github.com/wuminzhe/scale_rb/blob/main/lib/client/ws_client.rb
examples: https://github.com/wuminzhe/scale_rb/blob/main/examples/ws_client_1.rb https://github.com/wuminzhe/scale_rb/blob/main/examples/ws_client_2.rb https://github.com/wuminzhe/scale_rb/blob/main/examples/ws_client_3.rb https://github.com/wuminzhe/scale_rb/blob/main/examples/ws_client_4.rb
Sure, I'll take a look.
I'm glad the libraries made it easy for you. It was one of my goals to make it easier to build such things with Ruby.
This is a very simple program that subscribes to new head and prints out it. I found that when my computer is woken up from sleeping, the program will stop working without any errors.
I'm quite new to this gem and async ruby. How do I handle this situation?