This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* требуется библиотека phpQuery | |
**/ | |
$parserURL = array( | |
'Уголовные дела' => 'https://pravoved.ru/questions/criminal-law/' | |
,'Дела семейные' => 'https://pravoved.ru/questions/family-law/' | |
,'Недвижимость' => 'https://pravoved.ru/questions/realty/' | |
,'Автоюрист' => 'https://pravoved.ru/questions/auto-law/' | |
,'Наследственные дела' => 'https://pravoved.ru/questions/inheritance/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |