Node.js socket.io-client connect_failed / connect_error event

后端 未结 4 2040
难免孤独
难免孤独 2020-12-05 07:40

I am playing around with node.js and socket.io-client. I am trying to connect to a channel that does not exist in order to trigger the event \'connect_failed\' (as specified

4条回答
  •  悲&欢浪女
    2020-12-05 08:42

    they changed the event name. use

    reconnect_error
    

    or

    connect_error
    

    instead

    https://github.com/socketio/socket.io-client/blob/master/lib/socket.js#L27

提交回复
热议问题