Don't merge, it's prototypal
This commit is contained in:
@ -4,7 +4,7 @@ export default class extends AbstractAuthentifiedView {
|
||||
constructor(params) {
|
||||
super(params, "Chat");
|
||||
|
||||
let url = `wss://${window.location.host}/ws/socket-server/`
|
||||
let url = `ws://${window.location.host}/ws/socket-server/`
|
||||
|
||||
this.chatSocket = new WebSocket(url)
|
||||
this.chatSocket.onmessage = function(e){
|
||||
@ -44,7 +44,7 @@ export default class extends AbstractAuthentifiedView {
|
||||
<h1>Chat</h1>
|
||||
|
||||
<form id="form">
|
||||
<input type="text" name="message" />
|
||||
<input type="text" name="message" placeholder="message"/>
|
||||
</form>
|
||||
|
||||
<div id="messages">
|
||||
|
Reference in New Issue
Block a user