Web Socket Server

41 views
Skip to first unread message

Erdem Eser Ekinci

unread,
Feb 14, 2021, 6:49:44 AM2/14/21
to thespian.py
Hi, 

Only that I can find about web sockets is the following example.


I want to listen an actor's messages from a web client via web socket.  Isn't it meaningless to implement an actor as a web socket provider?

Please help me Kevin :)

Best. 

Kevin Quick

unread,
Feb 14, 2021, 3:34:31 PM2/14/21
to Erdem Eser Ekinci, thespian.py
Thespian has several supported transports (TCP, UDP, Queue) for multi-process Actors, but websockets is not one of them.  To utilize websockets it would be necessary to be running Python Thespian Actors on both sides of the websocket connection, which is not something I've anticipated needing.

The example you referenced above provides an Actor which acts as a bridge between other Actors and a Websocket, passing messages from other Actors to the Websocket and vice-versa.  This may be the best way to obtain the functionality you are looking for.

Regards,
  Kevin


--
You received this message because you are subscribed to the Google Groups "thespian.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thespianpy+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thespianpy/8d94d9ca-a695-4e78-9f52-d3c56720bec0n%40googlegroups.com.


--
-KQ
Reply all
Reply to author
Forward
0 new messages