Comments (7)
hi @dmugtasimov
i thought i had that covered already. see https://github.com/noisyboiler/wampy/blob/master/wampy/transports/websocket/frames.py#L306
Is there a bug to report? Or do you want this exposed to be used other than by wampy
internals?
thanks
from wampy.
No, it is not a bug report, rather a feature request. Now it is implemented to pong a ping from Crossbar. I would like also to be able to send ping from client to crossbar. And have a handler for received pong. This is needed to check if crossbar is still available (connection alive)
from wampy.
Ok. So would a configurable websocket Ping interval be what you are after? And whatever wampy
client you instantiate would Ping the router at these intervals?
from wampy.
I see it like I have method on wampy
client which I call whenever I want and it sends ping and I have a decorator to mark a handler for pong. I this case it is up to wampy
user to ping in intervals or on demand. Also pong timeout is up to wampy
user to validate in handler (or outside of it).
from wampy.
are you being disconnected from a Router then? if so, wampy
does return a Pong
if a Router pings you... maybe it just needs to be configured to do so?
Or if you're not being disconnected, I'm curious as to why you'd like this.
We could do it, but it needs some thought. wampy
only has public APIs to send WAMP
messages (no big surprise there) and exposing the websocket messages to the user is going to break the design.
from wampy.
@dmugtasimov
i gave it a go tonight: #86
from wampy.
in master.
from wampy.
Related Issues (20)
- Error when transferring big, really big strings HOT 3
- wampy requires too old gevent package HOT 2
- Wrong arg for socket.connect() HOT 1
- wampy 'run' command broken HOT 2
- Doc : how to setup the URL in the config.json file of crossbar HOT 5
- Dependency issue: No module named tenacity HOT 2
- Example: Ticket authentication HOT 5
- Double slash in path HOT 3
- flask example HOT 7
- unale to run the example HOT 10
- Cannot receive result from RPC to autobahn callee HOT 3
- client can't connect to crossbar universal transport HOT 2
- feature request: expose session timeout to Client & caller HOT 13
- MonkeyPatchWarning HOT 3
- Please, do not use strict dependencies (==) in setup.py, it leads to conflicts with subdependencies of other libraries in the same project HOT 2
- wampy run command not working HOT 2
- Help With Coverage HOT 1
- Is there a file (like CHANGE.rst) or documentation where I can find what changed in each version (to decide if it is worth upgrading)? HOT 2
- Python 3.7 Support HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wampy.