Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e3be7077
authored
Jan 14, 2018
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
socket timeout set to 5 seconds
parent
d915e6cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
sails/src/api/controllers/StudentController.js
sails/src/api/hooks/rooms.js
sails/src/api/controllers/StudentController.js
View file @
e3be7077
...
@@ -1444,7 +1444,10 @@ module.exports = {
...
@@ -1444,7 +1444,10 @@ module.exports = {
attributes
.
ui
attributes
.
ui
);
);
}
}
res
.
ok
(
sails
.
hooks
.
rooms
.
getUICount
(
room
));
sails
.
hooks
.
rooms
.
getUICount
(
room
,
(
info
)
=>
{
res
.
ok
(
info
);
});
},
},
//
//
...
...
sails/src/api/hooks/rooms.js
View file @
e3be7077
...
@@ -49,7 +49,7 @@ module.exports = function roomsHook (sails) {
...
@@ -49,7 +49,7 @@ module.exports = function roomsHook (sails) {
*/
*/
notifyRoom
:
function
(
room
)
{
notifyRoom
:
function
(
room
)
{
// Broadcast data to room's peers
// Broadcast data to room's peers
sails
.
hooks
.
event
s
.
getUICount
(
room
,
(
info
)
=>
{
sails
.
hooks
.
room
s
.
getUICount
(
room
,
(
info
)
=>
{
sails
.
hooks
.
events
.
broadcastEvent
(
sails
.
hooks
.
events
.
broadcastEvent
(
room
,
room
,
sails
.
hooks
.
events
.
roomSubscribersChange
(
info
)
sails
.
hooks
.
events
.
roomSubscribersChange
(
info
)
...
...
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