-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket Client #52
Comments
I am interested in working on this, can anyone point me in the right direction? |
Figuring out how meteor checks for updated code would be a good place to On Monday, March 7, 2016, Tim notifications@github.com wrote:
|
Clients are called in the current tests. They pick from common browsers and phantoms, whichever are available on the system running the test. The code for opening linux browsers may or may not be working for the browsers - I don't have linux. Try Pkg.test("WebSockets") if you have linux. |
Having an example of how to use a websocket client from julia would be very useful in the documentation. Can't find anything online. All examples reference non julia clients. |
This package implements server side only. Dandelionwebsockets aims to implement both, but there is a current lack of maintainers. The current examples are written with anonymous functions, which I personally find complicates debugging. The examples in the test folders are written in a quite different style which you may possibly find easier to follow, depending on where you are coming from. The client side interfaces are written in the most basic javascript. I find chrome the most user friendly client side implementation. I hope I understood your issue reasonably well, and would appreciate if you could share details of your use case. |
You may also want to study Blink, Atom, Electron, IJuliaEscher and other dependendants. I do not find those as easy to understand, but then that may be different for you. |
Use case is fairly simple. I need to connect to a websocket that disseminates timeseries data in the form of a json object. {“Time”:”2017-12-12 04:34:23.324343”, “Val”:123} I want to take every event that arrives and (in Julia) store it in an array. After 100 events have arrived, I want to sum the entries and flush the array. |
I am travelling without a computer. One way you can get going is modifying directly the test files; What I call the client side code resides in browsertest.html Now output from your code is the tricky part. Write to a file or write to a mutable const are two options. Calling outside functions with the output from websocket communication is another. In time, I plan to give an example communicating with other processes over a Zmq queue. |
We have a server so how about a client?
Would this be easy to implement?
The text was updated successfully, but these errors were encountered: