-
Notifications
You must be signed in to change notification settings - Fork 3
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
ksbus cannot be used #3
Comments
Hi @darcyg, let me check tonight, and i will be back to you |
Looking forward to testing your ksbus. It seems very good and exactly what I want. Thank you. |
Should be fixed ;) @darcyg |
@kamalshkeir |
@darcyg make sure you update go get -u github.com/kamalshkeir/[email protected] |
@kamalshkeir This is significantly different from my expected pub/sub behavior. I believe that every time client-py connects, it should receive the server1 information within 50*0.5s. |
hi @darcyg
you don't need any rpc client in this case, if you only need to communicated between python client and server bus Go |
@kamalshkeir |
Hello again :), nope.
first time i hear about it, what is it?
Le jeu. 5 déc. 2024, 04:05, Darcy Gong ***@***.***> a écrit :
… @kamalshkeir <https://github.com/kamalshkeir>
Sorry, I've had some things to take care of these past few days, so I'll
conduct the tests later.
Are you familiar with the ubus in OpenWRT?
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANATQT5BP7K7RMTDDGNLSLL2D67HFAVCNFSM6AAAAABS24LSTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJYHE4DSMRYGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@kamalshkeir |
@kamalshkeir I have already ported the ksbus service and RPC functionality into my code. my server code: f on_serv_new_event(data) { echo(ksbus_serv_init("master",":9313",":9314",on_serv_id)) while true { my rpc client code: f on_rpc_new_event(data) { echo(ksbus_rpc_init("rpc-client-imp","localhost:9314",false,on_rpc_id)) serv log: ========= |
Hi @darcyg , should be fixed for duplicate messages RPC, bump ksbus version to v1.4.3. and for |
The example program example/client-go exits abnormally directly
client connected to ws://localhost:9313/ws/bus
CLIENT connected as go-client
ON OnDataWs: map[data:pong]
ERRO [ksbus/client.go:133] client handler for topic not found topic= time=02/12/2024 17:00
not received: 8ff57434-7fd4-45e0-877b-a46b82cb0bbc browser
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6e6dec]
goroutine 1 [running]:
github.com/kamalshkeir/ksbus.Subscriber.Unsubscribe({0x0, {0x77e831, 0x9}, {0xc000244060, 0x24}, 0x0, 0xc000224000})
/works/ha-works/github/ksbus/subscriber.go:18 +0x4c
github.com/kamalshkeir/ksbus.(*Client).PublishToIDWaitRecv(0xc000132600, {0x77dece, 0x7}, 0xc0002083c0, 0x7aeeb8, 0x7aeec0)
/works/ha-works/github/ksbus/client.go:264 +0x2d4
main.main()
/works/ha-works/github/ksbus/examples/client-go/client.go:37 +0x2c7
After installing ksbus with pip3 install ksbus, the client-py demo cannot run.
python ksbus.py
Traceback (most recent call last):
File "ksbus.py", line 2, in
from ksbus import Bus
File "/works/ha-works/github/ksbus/examples/client-py/ksbus.py", line 2, in
from ksbus import Bus
ImportError: cannot import name 'Bus' from 'ksbus' (/works/ha-works/github/ksbus/examples/client-py/ksbus.py)
The text was updated successfully, but these errors were encountered: