I tried it and it works fine, but as soon as I try to hang this to a button
it disconnects, so this line
$('#arg_form').on('submit',function ()
is the problem, if I send message without hanging it to a button submit
function it is ok with or without JSON.stringify
сряда, 22 февруари 2017 г., 9
Then you need to add more and more back until it does disconnect and you
should be able to find the line that's doing it!
Andrew
On Tue, Feb 21, 2017 at 11:03 PM, Nikoleta Misheva
wrote:
> I tried the simplest example and it works fine and does not disconnect.
>
> def websocket_receive(message
I tried the simplest example and it works fine and does not disconnect.
def websocket_receive(message):
text = message.content.get('text')
if text:
message.reply_channel.send({"text": "You said: {}".format(text)})
And using the JS console
socket = new WebSocket("ws://" + window.location.hos
How do I log an WebsocketCloseExeption it might deliver more useful
information?
сряда, 22 февруари 2017 г., 3:08:09 UTC+2, Andrew Godwin написа:
>
> I'm afraid I don't really know what's going on then - the logs don't
> reveal very much. I'd try reducing it down to simpler code until you can
>
I'm afraid I don't really know what's going on then - the logs don't reveal
very much. I'd try reducing it down to simpler code until you can replicate
it in only a few lines and work from there.
Andrew
On Tue, Feb 21, 2017 at 11:46 AM, Nikoleta Misheva
wrote:
> I don't know how to get the clos
I don't know how to get the close code. It disconnects right after you hit
the send button but it manages to send the message, I had prints and the
message was right and etc but was always after disconnect. My disconnect
function basically deletes the room. And python's console logs:
[2017/02/21
How does it disconnect? What WebSocket close code do you get? (You'll need
to add JS to log it) What prints on the Python console?
Andrew
On Tue, Feb 21, 2017 at 12:27 AM, Nikoleta Misheva
wrote:
> When I send message the websocket disconnects. I am able to get the
> message, but I can't procee
When I send message the websocket disconnects. I am able to get the
message, but I can't proceed further since disconnect is supposed to delete
the room. I tested it with basic prints after every statement and it
disconnects right after the receiver gets the message because everything
that is i
8 matches
Mail list logo