Andy Prock
9b87e6c860
Added an optional options parameter for WebSockets
...
Summary:
This enables overriding origin, and other request headers. Similar to the https://github.com/websockets/ws api.
Closes https://github.com/facebook/react-native/pull/4629
Reviewed By: svcscm
Differential Revision: D2839951
Pulled By: mkonicek
fb-gh-sync-id: 3578af4343f90572b8851ff28342a05945498ef6
2016-01-20 11:01:39 -08:00
Nick Lockwood
fa0b45c58b
Replaced RCTSparseArray with NSDictionary
...
Reviewed By: jspahrsummers
Differential Revision: D2651920
fb-gh-sync-id: 953e2ea33abfc7a3a553da95b13e9ab2bccc5a1c
2015-11-14 10:28:28 -08:00
Nick Lockwood
c5b990f65f
Added lightweight generic annotations
...
Summary: public
Added lightweight genarics annotations to make the code more readable and help the compiler catch bugs.
Fixed some type bugs and improved bridge validation in a few places.
Reviewed By: javache
Differential Revision: D2600189
fb-gh-sync-id: f81e22f2cdc107bf8d0b15deec6d5b83aacc5b56
2015-11-03 14:49:30 -08:00
Joe Noon
607527c0d4
(upstream) Prevent SocketRocket killing the connection before notifying of final messages
...
Summary: wrap NSStreamEventEndEncountered in dispatch_async _workQueue per upstream:
https://github.com/square/SocketRocket/pull/294
CLA completed
Closes https://github.com/facebook/react-native/pull/3493
Reviewed By: svcscm
Differential Revision: D2554892
Pulled By: javache
fb-gh-sync-id: 347a37eb95b20b7e92b985b6908e15462672e83c
2015-10-19 06:47:22 -07:00
Nick Lockwood
88e0bbc469
Ran Convert > To Modern Objective C Syntax
2015-08-25 01:08:49 -08:00
Nick Lockwood
8d1e02b8bd
Convert alloc/init to new to please linter
2015-08-17 08:46:00 -07:00
Nick Lockwood
650fc9de4c
Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues
...
Summary:
@public
I've increased the warning levels in the OSS frameworks, which caught a bunch of minor issues. I also fixed some new errors in Xcode 7 relating to designated initializers and TLS security.
Test Plan:
* Test the sample apps and make sure they still work.
* Run tests.
2015-06-15 07:52:50 -08:00
Harrison Harnisch
babdc21614
WebSocket polyfill
...
Summary:
- Added as a library in /Libraries/WebSocket
- Drag and drop to add to project (similar to adding Geolocation polyfill)
- Exposed as `window.WebSocket` which conforms with https://developer.mozilla.org/en-US/docs/Web/API/WebSocket specs
Closes https://github.com/facebook/react-native/pull/890
Github Author: Harrison Harnisch <hharnisc@gmail.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-14 09:37:02 -08:00