File tree 4 files changed +13
-13
lines changed
mobile/src/main/java/io/syslogic/socketio
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
package io .syslogic .socketio ;
2
2
3
3
public class Constants {
4
- public final static String REQUEST_KEY_LOGIN = "login" ;
5
- public final static String REQUEST_KEY_USER_ADD = "add user" ;
6
- public final static String REQUEST_KEY_CHAT_MESSAGE = "chat message" ;
4
+ public final static String REQUEST_KEY_LOGIN = "login" ;
5
+ public final static String REQUEST_KEY_CHAT_MESSAGE = "chat message" ;
7
6
public final static String REQUEST_KEY_DIRECT_MESSAGE = "direct message" ;
8
- public final static String REQUEST_KEY_USER_JOINED = "login" ;
9
- public final static String REQUEST_KEY_USER_LEFT = "add user" ;
10
- public final static String REQUEST_KEY_TYPING_START = "typing start" ;
11
- public final static String REQUEST_KEY_TYPING_STOP = "typing stop" ;
12
- public final static String REQUEST_KEY_SOCKETS = "sockets" ;
7
+ public final static String REQUEST_KEY_USER_ADD = "user add" ;
8
+ public final static String REQUEST_KEY_USER_JOINED = "user joined" ;
9
+ public final static String REQUEST_KEY_USER_LEFT = "user left" ;
10
+ public final static String REQUEST_KEY_TYPING_START = "typing start" ;
11
+ public final static String REQUEST_KEY_TYPING_STOP = "typing stop" ;
12
+ public final static String REQUEST_KEY_SOCKETS = "sockets" ;
13
13
}
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ module.exports = {
8
8
USER_LOGIN : "login" ,
9
9
USER_JOINED : "user joined" ,
10
10
USER_LEFT : "user left" ,
11
- USER_ADD : "add user" ,
11
+ USER_ADD : "user add " ,
12
12
SOCKETS : "sockets"
13
13
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ $(function() {
62
62
$inputMessage . focus ( ) ;
63
63
64
64
// Tell the server your username
65
- socket . emit ( 'add user' , username ) ;
65
+ socket . emit ( 'user add ' , username ) ;
66
66
}
67
67
}
68
68
@@ -311,7 +311,7 @@ $(function() {
311
311
socket . on ( 'reconnect' , ( ) => {
312
312
log ( 'you have been reconnected' ) ;
313
313
if ( username ) {
314
- socket . emit ( 'add user' , username ) ;
314
+ socket . emit ( 'user add ' , username ) ;
315
315
}
316
316
} ) ;
317
317
Original file line number Diff line number Diff line change 94
94
95
95
/* Font */
96
96
97
- .participants {
97
+ .sockets {
98
98
width : 160px ;
99
99
padding : 10px 10px 10px 10px ;
100
100
font-size : 120% ;
104
104
border-right : 2px solid # F78B00 ;
105
105
}
106
106
107
- .participants li {
107
+ .sockets li {
108
108
width : 100% ;
109
109
}
110
110
.messages {
You can’t perform that action at this time.
0 commit comments