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

follow new transport and connection spec #14

Merged
merged 1 commit into from
Jun 22, 2016
Merged

follow new transport and connection spec #14

merged 1 commit into from
Jun 22, 2016

Conversation

daviddias
Copy link
Member

@daviddias daviddias commented Jun 19, 2016

No description provided.

@daviddias daviddias force-pushed the follow-spec branch 2 times, most recently from d010c97 to 2dab331 Compare June 20, 2016 10:06
@daviddias daviddias force-pushed the follow-spec branch 4 times, most recently from 98e1ef6 to fc834fd Compare June 20, 2016 15:23
const isNode = require('detect-node')
let SWS
if (isNode) {
SWS = require('simple-websocket-server')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still requires to have a fake simple-websocket-server in the webpack config :/ not sure how to better solve it though

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We get some warning of missing deps, namely:

WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Can't resolve 'utf-8-validate' in '/Users/david/code/js-libp2p-websockets/node_modules/ws/lib'
 @ ./~/ws/lib/Validation.js 10:19-44

WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Can't resolve 'bufferutil' in '/Users/david/code/js-libp2p-websockets/node_modules/ws/lib'
 @ ./~/ws/lib/BufferUtil.js 10:19-40

But since the execution never goes there, no error is caused. Do we need to 'fix' these warnings?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better, try adding 'simple-websocket-server': '{}' to the externals list

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. no more warnings.

@daviddias daviddias merged commit 3c0c172 into master Jun 22, 2016
@daviddias daviddias deleted the follow-spec branch June 22, 2016 10:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants