Skip to content

wscat breaks when IP of server changes #146

@Michael65589

Description

@Michael65589

Hi,
I use WSCAT to communicate with a server in a Windows batch file. It works well but when I send a command to change the servers IP address WSCAT breaks and also my batch file.

Example:
wscat --connect ws://192.168.2.120:1234 -w 1 -x {"type":"write","name":"network","value":{"ip":"192.168.2.150","netmask":"255.255.255.0","gateway":"192.168.0.1"}}

The server receives the message, set and activate the new IP address but WSCAT does not get the answer because it expects the answer on the IP address 192.168.2.120.

Is there a way to do not wait for an answer?

Thanks
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions