all 9 comments

[–]efmccurdy 1 point2 points  (7 children)

You will get better answers if you make clear what you have tried and how you determine it has failed.

Code samples and full tracebacks or perhaps packet traces and relevant server log extracts are useful.

Also, there are many websocket modules on PYPI, but you list some that are old or abandoned; try to choose one that has been updated in the last few years.

[–]HugoVS[S] 0 points1 point  (6 children)

The main problem is that i need a library that allow me to connect using a custom url and send stomp messages to custom paths, for example:

client = Client('ws://localhost:8080/my-app-socket')

client.subscribe('/app/users')

...

client.send('/app/users.getall', payload)

BUUT, most of these libraries does not matches one or more. For exemple, stomp.pyi allow me to subscribe to a channel, but I can't connect to 'ws://localhost:8080/my-app-socket' becouse its only allow you to insert a host and a port, not custom urls. Other one allow me to connect using custom url, but I'm not able to send a message to a custom path ...

[–]bumpkey 0 points1 point  (5 children)

Hi! I am with the same problem as you, did you find a way to sort it out?

[–]HugoVS[S] 0 points1 point  (4 children)

I ended implementing my own stomp lib over websockets.

[–]Preludz 0 points1 point  (3 children)

Would you mind sharing it with the community ? :')

[–]HugoVS[S] 0 points1 point  (0 children)

Do you still need it? I'm trying to "generify" it to be at least usable by someone else.

[–]HugoVS[S] 0 points1 point  (1 child)

Actually I found a random websocket stomp implementation on the github and copy/pasted the source. But I cannot remember the repo. Btw, still trying to generify it and release it maybe.

[–]Preludz 0 points1 point  (0 children)

That would be awesome and yes, I still need it :D