Repository navigation
Implement WebSocket module for Android. Fixes #2837 #2839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
61583b3
e853d36
110c6d4
c9a5556
7dffbbf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /** | ||
| * Copyright (c) 2015-present, Facebook, Inc. | ||
| * All rights reserved. | ||
| * | ||
| * This source code is licensed under the BSD-style license found in the | ||
| * LICENSE file in the root directory of this source tree. An additional grant | ||
| * of patent rights can be found in the PATENTS file in the same directory. | ||
| * | ||
| * @providesModule Event | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may break Facebook's code. cc @vjeux can you grep for this? |
||
| * | ||
| */ | ||
|
|
||
| 'use strict'; | ||
|
|
||
| class Event { | ||
| constructor(type) { | ||
| this.type = type.toString(); | ||
| } | ||
| } | ||
|
|
||
| module.exports = Event; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /** | ||
| * Copyright (c) 2015-present, Facebook, Inc. | ||
| * All rights reserved. | ||
| * | ||
| * This source code is licensed under the BSD-style license found in the | ||
| * LICENSE file in the root directory of this source tree. An additional grant | ||
| * of patent rights can be found in the PATENTS file in the same directory. | ||
| * | ||
| * @providesModule MessageEvent | ||
| * | ||
| */ | ||
|
|
||
| 'use strict'; | ||
|
|
||
| var Event = require('Event'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious - this is quite a generic name and could conflict with other code in the future. How about calling it |
||
|
|
||
| class MessageEvent extends Event { | ||
| constructor(type, eventInitDict) { | ||
| super(type); | ||
|
|
||
| Object.assign(this, eventInitDict); | ||
| } | ||
| } | ||
|
|
||
| module.exports = MessageEvent; | ||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these licenses should be BSD