Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
com.hdp.customerservice
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文胜
com.hdp.customerservice
Commits
f00d6914
Commit
f00d6914
authored
Jun 15, 2015
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
06a7dd42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
IMWebSocketEndpoint.java
...om/hdp/customerservice/websocket/IMWebSocketEndpoint.java
+1
-1
app.js
src/main/resources/static/js/app.js
+1
-1
No files found.
src/main/java/com/hdp/customerservice/websocket/IMWebSocketEndpoint.java
View file @
f00d6914
...
...
@@ -16,7 +16,7 @@ import org.apache.commons.logging.LogFactory;
import
com.hdp.customerservice.websocket.model.Customer
;
import
com.hdp.customerservice.websocket.model.Waiter
;
@ServerEndpoint
(
"/
reverse
"
)
@ServerEndpoint
(
"/
im
"
)
public
class
IMWebSocketEndpoint
{
private
static
Log
log
=
LogFactory
.
getLog
(
IMWebSocketEndpoint
.
class
);
...
...
src/main/resources/static/js/app.js
View file @
f00d6914
...
...
@@ -16,7 +16,7 @@ websocketApp.service('WebSocketService',
var
Service
=
{};
var
callbacks
=
{};
var
currentCallbackId
=
0
;
var
ws
=
new
WebSocket
(
"ws://localhost:8080/
reverse
"
);
var
ws
=
new
WebSocket
(
"ws://localhost:8080/
im
"
);
ws
.
onopen
=
function
(){
console
.
log
(
"连接到了服务器!"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment