Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table>
- <tr>
- <th>Name</th>
- </tr>
- {{#each friends}}
- <tr>
- <td><a href="/chat?name={{this.profileName}}">{{this.profileName}}</a></td>
- </tr>
- {{/each}}
- </table>
- socket.join(chatTable);//joining a room ! where problem rises
- io.sockets.in(chatTable).emit('db chat message',rows);
- <form action="">
- <input id="m" autocomplete="off" /><button>Send</button>
- </form>
- $('form').submit(function(){
- socket.emit('chat message', $('#m').val());
- $('#m').val()='';
- return false;
- });
Add Comment
Please, Sign In to add comment