|
|
@ -130,8 +130,8 @@ namespace websockets { |
|
|
|
break; |
|
|
|
case LWS_CALLBACK_CLOSED: |
|
|
|
if(verbose) lwsl_notice("Connection closed (%p, %p)\n", this, user_ptr); |
|
|
|
user.~user_type(); |
|
|
|
close_func(user, binfo); |
|
|
|
user.~user_type(); |
|
|
|
break; |
|
|
|
case LWS_CALLBACK_SERVER_WRITEABLE:{ |
|
|
|
std::string string_to_send = write_func(user, binfo); |
|
|
|