00:07
[spoiler] has quit [Quit: Leaving]
02:29
CoderPuppy has joined #opal
02:30
cpup has quit [Ping timeout: 250 seconds]
03:12
godd2 has quit [Remote host closed the connection]
06:06
elia has joined #opal
06:26
e_dub has quit [Read error: Connection reset by peer]
06:27
_whitelogger has quit [Ping timeout: 260 seconds]
06:27
_whitelogger has joined #opal
06:28
adambeynon_ has joined #opal
06:55
e_dub has joined #opal
07:09
elia has quit [Quit: Computer has gone to sleep.]
08:35
CoderPuppy has quit [Ping timeout: 244 seconds]
08:39
cpup has joined #opal
08:50
meh` has quit [Ping timeout: 258 seconds]
08:59
CoderPuppy has joined #opal
09:02
cpup has quit [Ping timeout: 264 seconds]
09:11
moon4u has joined #opal
09:13
elia has joined #opal
12:34
astantoid has joined #opal
12:34
astantoid has left #opal [#opal]
15:45
moon4u has quit [Remote host closed the connection]
16:10
e_dub has quit [Quit: e_dub]
16:59
e_dub has joined #opal
17:14
f-3r has joined #opal
17:34
elia has quit [Quit: Computer has gone to sleep.]
18:15
godd2 has joined #opal
18:17
cpup has joined #opal
18:20
CoderPuppy has quit [Ping timeout: 256 seconds]
18:31
bigdoge has joined #opal
18:31
bigdoge has left #opal [#opal]
19:41
f-3r has quit [Ping timeout: 264 seconds]
19:52
f-3r has joined #opal
20:30
krainboltgreene has quit [*.net *.split]
20:30
wasnotrice has quit [*.net *.split]
20:31
krainboltgreene has joined #opal
20:31
wasnotrice has joined #opal
21:00
e_dub has quit [Quit: e_dub]
21:10
e_dub has joined #opal
21:17
f-3r has quit [Ping timeout: 255 seconds]
21:22
Max has joined #opal
21:22
<
Max >
Hey guys I have a noobie question. I am trying to get opal browser to work with sinatra. However I get this error
21:22
Max is now known as Guest59689
21:22
<
Guest59689 >
Uncaught NameError: uninitialized constant Browser::Socket
21:42
<
godd2 >
Guest59689 where are you getting that?
21:43
<
Guest59689 >
In the javascript console
21:44
<
Guest59689 >
here is my application.rb file
21:44
<
Guest59689 >
require 'opal' require 'browser' Browser::Socket.new 'ws://echo.websocket.org' do on :open do every 1 do puts "ping" end end on :message do |e| log "Received #{e.data}" end end
21:44
<
Guest59689 >
require 'opal'
21:45
<
Guest59689 >
require 'browser'
21:45
<
Guest59689 >
Browser::Socket.new 'ws://echo.websocket.org' do end
22:12
Guest59689 has quit [Ping timeout: 246 seconds]
23:22
e_dub has quit [Quit: e_dub]
23:30
f-3r has joined #opal
23:47
f-3r has quit [Ping timeout: 264 seconds]