Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
3e3e7190
Commit
3e3e7190
authored
Feb 08, 2017
by
AlexStocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RunWSEventLoopWithTLS -> RunWSSEventLoop
parent
79dd7fa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
change_log.md
change_log.md
+3
-1
server.go
server.go
+3
-2
No files found.
change_log.md
View file @
3e3e7190
...
...
@@ -18,7 +18,9 @@
>
> 2 session variable -> ss
>
> 3 version: 0.7.01
> 3 RunWSEventLoopWithTLS -> RunWSSEventLoop
>
> 4 version: 0.7.01
-
2017/02/03
> 1 Session struct -> session struct and add Session interface
...
...
server.go
View file @
3e3e7190
...
...
@@ -236,10 +236,11 @@ func (s *Server) RunWSEventLoop(newSession NewSessionCallback, path string) {
}()
}
// RunWSEventLoopWithTLS serve websocket client request
// serve websocket client request
// RunWSSEventLoop serve websocket client request
// @newSession: new websocket connection callback
// @path: websocket request url path
func
(
s
*
Server
)
RunWS
EventLoopWithTLS
(
newSession
NewSessionCallback
,
path
string
,
cert
string
,
priv
string
)
{
func
(
s
*
Server
)
RunWS
SEventLoop
(
newSession
NewSessionCallback
,
path
string
,
cert
string
,
priv
string
)
{
s
.
wg
.
Add
(
1
)
go
func
()
{
defer
s
.
wg
.
Done
()
...
...
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