I already changed the boss.config file before and now i check boss_mochicow handler and it is the same as you sent.
handle_close(Reason, ServiceName, WebSocketId, State) ->
#state{users=Users} = State,
io:format("ServiceName ~p, WebSocketId ~p, SessiondId ~p, close for Reason ~p~n",
[ServiceName, WebSocketId, SessionId, Reason]),
[{A,B,C,D,E,F,G,H,I,J,K,L,M,N}] = boss_db:find(ip_database,[{web_socket_id,'equals',WebSocketId}]),
boss_db:delete(B),
{noreply, #state{users=dict:erase(WebSocketId, Users)}}.
Do i have to add it here?
Thanks
Mert
9 Şubat 2015 Pazartesi 15:42:22 UTC+2 tarihinde mihawk yazdı: