node.js - Python socket.io - how to connect over HTTPS? -
i trying send socket.io message nodejs server on https. after googling around socketio on python; have written below simple code make test. although receive no compile error, receive nothing server. when analyzed via wireshark packetsniffer; noticed https connection not established (target server has valid signed certificate , can access server via js based frontend without problem)..
from socketio_client import socketio, loggingnamespace nodejs_url = "https://targetserver.com" def on_message_response(*args): print('message', args) user_value = "test1" message_value = "hello" socketio(nodejs_url, 443, loggingnamespace) socketio: socketio.emit('message', { 'user': user_value, 'message': message_value}, on_message_response) socketio.wait_for_callbacks(seconds=1)
do have idea why python socketio connection might not successful?
Comments
Post a Comment