Requests taken as json strings in the socket packet. Consumers will need to parse responses and stringify requests yourself, as ws doesn't provide a way to automatically parse them.