Lines Matching refs:websocket
55 if (client->transport.websocket.config.url == NULL) { in mqtt_client_websocket_connect()
56 client->transport.websocket.config.url = "/mqtt"; in mqtt_client_websocket_connect()
59 if (client->transport.websocket.config.host == NULL) { in mqtt_client_websocket_connect()
60 client->transport.websocket.config.host = "localhost"; in mqtt_client_websocket_connect()
69 client->transport.websocket.config.optional_headers = extra_headers; in mqtt_client_websocket_connect()
71 client->transport.websocket.sock = websocket_connect( in mqtt_client_websocket_connect()
73 &client->transport.websocket.config, in mqtt_client_websocket_connect()
74 client->transport.websocket.timeout, in mqtt_client_websocket_connect()
76 if (client->transport.websocket.sock < 0) { in mqtt_client_websocket_connect()
78 client->transport.websocket.sock); in mqtt_client_websocket_connect()
81 return client->transport.websocket.sock; in mqtt_client_websocket_connect()
96 ret = websocket_send_msg(client->transport.websocket.sock, in mqtt_client_websocket_write()
125 ret = websocket_send_msg(client->transport.websocket.sock, in mqtt_client_websocket_write_msg()
151 ret = websocket_recv_msg(client->transport.websocket.sock, in mqtt_client_websocket_read()
173 NET_INFO("Closing socket %d", client->transport.websocket.sock); in mqtt_client_websocket_disconnect()
175 ret = websocket_disconnect(client->transport.websocket.sock); in mqtt_client_websocket_disconnect()