Skip to content
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

How to send message... #69

Open
Arti3DPlayer opened this issue Aug 31, 2014 · 0 comments
Open

How to send message... #69

Arti3DPlayer opened this issue Aug 31, 2014 · 0 comments

Comments

@Arti3DPlayer
Copy link

I have event:

@on_message
def message(request, socket, context, message):
    print message

When i try to connect and send message:

from websocket import create_connection
ws = create_connection("ws://127.0.0.1:9000/")
ws.send("Hello, World")

I receive error:

websocket._exceptions.WebSocketException: Handshake status 200

In another try i create view - send message to url and the same result...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant