We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is an example.
if __name__ == "__main__": factory = websocket.WebSocketServerFactory(u"wss://{WS_BIND_IP}:{WS_PORT}") factory.protocol = ServerProtocol listenWS(factory) reactor.run()
WS_BIND_IP is my ipv6 address and WS_PORT is 11111 for example. Then use wscat to test websocket.
WS_BIND_IP
WS_PORT
wscat
wscat ws://127.0.0.1:11111 return Connected. wscat ws://my_ipv4_address:11111 return Connected. wscat ws://[::]:11111 return error: connect ECONNREFUSED :::11111 wscat ws://[my_ipv6_address]:11111 return error: connect ECONNREFUSED my_ipv6_address:11111
wscat ws://127.0.0.1:11111
wscat ws://my_ipv4_address:11111
wscat ws://[::]:11111
error: connect ECONNREFUSED :::11111
wscat ws://[my_ipv6_address]:11111
error: connect ECONNREFUSED my_ipv6_address:11111
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here is an example.
WS_BIND_IP
is my ipv6 address andWS_PORT
is 11111 for example. Then usewscat
to test websocket.wscat ws://127.0.0.1:11111
return Connected.wscat ws://my_ipv4_address:11111
return Connected.wscat ws://[::]:11111
returnerror: connect ECONNREFUSED :::11111
wscat ws://[my_ipv6_address]:11111
returnerror: connect ECONNREFUSED my_ipv6_address:11111
The text was updated successfully, but these errors were encountered: