diff --git a/echo_test.rb b/echo_test.rb index e884391..106635c 100644 --- a/echo_test.rb +++ b/echo_test.rb @@ -15,4 +15,4 @@ while true line = s.gets # Read lines from the socket puts "Got Echo: " + line.chop # And print with platform line terminator end -s.close # Close the socket when done \ No newline at end of file +s.close # Close the socket when done diff --git a/js_runner.erl b/js_runner.erl index f9bb5aa..52878ee 100644 --- a/js_runner.erl +++ b/js_runner.erl @@ -8,4 +8,4 @@ boot() -> executeJS(Port, Data) -> ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>), - js:call(Port, <<"helloworld">>, [Data]). + js:call(Port, <<"helloworld">>, [list_to_binary(Data)]). diff --git a/src/.ggs_server.erl.swo b/src/.ggs_server.erl.swo index bb73076..3048659 100644 Binary files a/src/.ggs_server.erl.swo and b/src/.ggs_server.erl.swo differ