Reply back to messages
This commit is contained in:
parent
a969da0f0f
commit
bace4bde22
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,13 @@ title: Cammie
|
|||
---
|
||||
<% content_for :scripts do %>
|
||||
<script src="https://code.jquery.com/jquery-3.0.0.min.js" charset="utf-8"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js" integrity="sha256-yr4fRk/GU1ehYJPAs8P4JlTgu0Hdsp4ZKrx8bDEDC3I=" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var socket = io("https://kelder.zeus.ugent.be");
|
||||
socket.on('replymessage', function(obj) {
|
||||
alert("Kelder says: " + obj['message']);
|
||||
})
|
||||
</script>
|
||||
<%= asset :js, :cammie %>
|
||||
<%= asset :js, :message %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue