Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #58 from learn-co/single
Browse files Browse the repository at this point in the history
Prepare for single websocket connection
  • Loading branch information
drewprice authored Jun 26, 2017
2 parents 5fcdc0c + 1d09df2 commit 5185e1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/nsync/initializer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WS_SERVER_URL = (->
,
host: 'ile.learn.co',
port: 443,
path: 'fs_server'
path: 'environment'

{host, port, path} = config
protocol = if port is 443 then 'wss' else 'ws'
Expand Down Expand Up @@ -204,6 +204,7 @@ module.exports = helper = (activationState) ->
localRoot: _path.join(atom.configDirPath, '.learn-ide')
connection:
url: "#{WS_SERVER_URL}?token=#{token}&version=#{atomHelper.learnIdeVersion()}"
socketKey: 'environment'

atomHelper.waitForTerminalConnection().then(connect).catch(connect)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"event-kit": "^1.0.0",
"fs-plus": "^2.3.0",
"minimatch": "~0.3.0",
"nsync-fs": "0.0.21",
"nsync-fs": "0.0.22",
"temp": "~0.8.1",
"underscore-plus": "^1.0.0"
},
Expand Down

0 comments on commit 5185e1a

Please sign in to comment.