[Libwebsockets] [libwebsockets] #22: How to use websocket.close() close the connection

Trac trac at libwebsockets.org
Thu Feb 28 08:42:19 CET 2013


#22: How to use websocket.close() close the connection
------------------------------------+--------------------
 Reporter:  巫书轶                  |      Owner:  agreen
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:
Component:  libwebsocket test apps  |    Version:
 Keywords:  websocket.close()       |
------------------------------------+--------------------
 Why do I use javascript on the client the to call websocket.close()
 Connection can not be closed.
 I must write a callback return -1 in server; connection will be shut down;
 What can use websocket.close() closes the connection;

-- 
Ticket URL: <http://libwebsockets.org/trac/ticket/22>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list