public static Map < String , Object > ok ( Map < String , Object > msg ) { HashMap < String , Object > r = new HashMap <> ( ) ; r . put ( ( String ) msg . get ( "cmd" ) , "OK" ) ; r . put ( "session" , msg . get ( "session" ) ) ; return r ; }
Used by client