Skip to content

Commit 81efebe

Browse files
committed
constants updated.
1 parent 1a49bf4 commit 81efebe

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package io.syslogic.socketio;
22

33
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";
76
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";
1313
}

server/modules/constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ module.exports = {
88
USER_LOGIN: "login",
99
USER_JOINED: "user joined",
1010
USER_LEFT: "user left",
11-
USER_ADD: "add user",
11+
USER_ADD: "user add",
1212
SOCKETS: "sockets"
1313
}

server/public/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $(function() {
6262
$inputMessage.focus();
6363

6464
// Tell the server your username
65-
socket.emit('add user', username);
65+
socket.emit('user add', username);
6666
}
6767
}
6868

@@ -311,7 +311,7 @@ $(function() {
311311
socket.on('reconnect', () => {
312312
log('you have been reconnected');
313313
if (username) {
314-
socket.emit('add user', username);
314+
socket.emit('user add', username);
315315
}
316316
});
317317

server/public/style.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ul {
9494

9595
/* Font */
9696

97-
.participants {
97+
.sockets {
9898
width: 160px;
9999
padding: 10px 10px 10px 10px;
100100
font-size: 120%;
@@ -104,7 +104,7 @@ ul {
104104
border-right: 2px solid #F78B00;
105105
}
106106

107-
.participants li {
107+
.sockets li {
108108
width: 100%;
109109
}
110110
.messages {

0 commit comments

Comments
 (0)