Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
fb02c6fe
Commit
fb02c6fe
authored
Sep 13, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move client actions to webclient.go.
These are specific to webclients.
parent
78e9c96a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
group.go
group.go
+0
-25
webclient.go
webclient.go
+25
-0
No files found.
group.go
View file @
fb02c6fe
...
...
@@ -41,31 +41,6 @@ type group struct {
history
[]
chatHistoryEntry
}
type
pushConnAction
struct
{
id
string
conn
upConnection
tracks
[]
upTrack
}
type
addLabelAction
struct
{
id
string
label
string
}
type
pushConnsAction
struct
{
c
client
}
type
connectionFailedAction
struct
{
id
string
}
type
permissionsChangedAction
struct
{}
type
kickAction
struct
{
message
string
}
var
groups
struct
{
mu
sync
.
Mutex
groups
map
[
string
]
*
group
...
...
webclient.go
View file @
fb02c6fe
...
...
@@ -725,6 +725,31 @@ func startClient(conn *websocket.Conn) (err error) {
return
clientLoop
(
c
,
conn
)
}
type
pushConnAction
struct
{
id
string
conn
upConnection
tracks
[]
upTrack
}
type
addLabelAction
struct
{
id
string
label
string
}
type
pushConnsAction
struct
{
c
client
}
type
connectionFailedAction
struct
{
id
string
}
type
permissionsChangedAction
struct
{}
type
kickAction
struct
{
message
string
}
func
clientLoop
(
c
*
webClient
,
conn
*
websocket
.
Conn
)
error
{
read
:=
make
(
chan
interface
{},
1
)
go
clientReader
(
conn
,
read
,
c
.
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