Questions tagged [sockjs-tornado]

9 questions
3
votes
2 answers

Private messaging using sockjs-tornado

I have implemented chat feature using sockjs-tornado and could store the messages in RethinkDB. Could you please help me on how do I establish private channel for messaging in sockjs-tornado ? (I mean Private conversation / one to one) Below is the…
Sathish
  • 133
  • 7
2
votes
1 answer

Publish to specific channel/Group

I am looking into the swampdragon chat_example. In the router.py as per documentation get_subscription_channel gives channel name. When I tried to change the retrun value it still works. How can I limit the messages to specific group/channel. What…
Wickkiey
  • 4,446
  • 2
  • 39
  • 46
1
vote
1 answer

Tornado Server using most of the cpu while using tornado-sockjs and only two clients.

I am using Tornado Server, 4.4.2 and pypy 5.9.0 and python 2.7.13, hosted on Ubuntu 16.04.3 LTS A new client logs in and a new class is created and passed the socket, so dialog can be maintained. I am using a global clients[] list to contain the…
1
vote
1 answer

Python tornado OS Error 24 Too many open files

I am using a websocket server coded in Python 3.5. This is needed to provide my website realtime information. The "server"-library I use is called tornado (version 4.3) which handles the websocket connection and http requests. For backwards…
DoNotClick
  • 66
  • 1
  • 8
1
vote
0 answers

Create own websocket for octoprint plugin

I'm currently developing a plugin for octoprint, which uses sockjs-tornado for the server side to create a websocket. Now I try to create my own one (because the default implementation of the octoprint socket does not support forwarding events to my…
hellow
  • 12,430
  • 7
  • 56
  • 79
0
votes
1 answer

Private messaging in tornado

I am the beginner to tornado(python based web server). I have to create an application which will have public chat rooms and private messaging between two users.so, I have been looking for a good tutorial about tornado to implement the same but what…
0
votes
1 answer

ImportError: cannot import name 'errors'

Using sockjs with Tornado. On server run, this is the trace returned : python server.py Traceback (most recent call last): File "server.py", line 10, in from sockjs.tornado import SockJSRouter File…
vivekanon
  • 1,813
  • 3
  • 22
  • 44
0
votes
0 answers

Sockjs and tornado: How Sent and Read Data

I’m trying to learn sockjs for a small university project. I’ve a local server (with typical LAMP configuration), my goal is writing a python script (running on my local server) that is able to send data to client browser in order to update a text…
user7173126
0
votes
1 answer

OpenSSL error on Tornado server

I configure my Tornado server with: ssl_options = { "certfile": os.path.join("/tls.crt"), "keyfile": os.path.join("/tls.key") } http = tornado.httpserver.HTTPServer(application, ssl_options=ssl_options) tls.crt and tls.key are…
opyate
  • 5,388
  • 1
  • 37
  • 64