Commit Graph

16 Commits

Author SHA1 Message Date
Sean DuBois
d692ddfa54 Support DataChannel protocol in Go
Relates to #748
2019-09-27 16:19:49 -07:00
Sean DuBois
6088c7beed Add failing test for RTCDataChannel protocol
This currently only passes on WASM, but shows that we
diverge in Golang implementation

Relates to #748
2019-09-27 16:19:49 -07:00
Sean DuBois
febe8408e2 Bump wrtc used for WASM testing
Upstream has fixed an issue that was blocking one of our tests. Enable
the test and bump the wrtc version.
2019-08-23 23:08:56 -07:00
Hugo Arregui
24afce2c9a Execute openHandler once per session
Wrap it in Once and restore it every time a new session is established
2019-05-20 14:04:12 -03:00
Hugo Arregui
61d88173cb Add openHandler test
To ensure it's called only once (failing now)
2019-05-20 14:04:12 -03:00
Adam Kiss
7820ed0726 Fixed create data channel
Data channel creation checks if the sctp transport is already
established. Because this check was incorrect, in some cases it returned
an error instead of delaying opening the data channel until the sctp
connection is established. Fixed the check. Added locking to
CreateDataChannel to avoid race condition. Added test.
2019-04-24 11:11:06 -07:00
Yutaka Takeda
c7a5c7b0c1 Impleted bufferedAmount interface
Resolves #569
2019-04-06 15:52:49 -07:00
Sean DuBois
1cdfc10c84 Mass replace pions -> pion
Pions organization was renamed to pion
2019-04-04 15:32:03 -07:00
Alex Browne
5ab753c43e Combine some tests for Go and Wasm
This is now possible because the properties in the Go implementation
were changed to methods, which more closely matches the Wasm bindings.
Previously we needed two separate tests because of differences in the
two APIs.
2019-03-19 13:44:35 -07:00
Alex Browne
34e5a89f71 Add tests for WASM bindings
The tests are run in a Node.js environment, and this does not include
any browser tests. This requires the wrtc package from npm as well as a
shim which adds portions of the WebRTC API to the global scope.

Some tests introduced here can be combined when differences between the
Go API and the WASM bindings are addressed and as missing features are
added to the WASM bindings.

We can and should add more tests in the future to improve test coverage.
This should be considered the minimum number of tests reuqired to ensure
basic functionality is working.
2019-03-15 15:17:51 -07:00
Sean DuBois
6aeb3425b0 Move to new Track API
See v2.0.0 Release Notes[0] for all changes

Resolves #405

[0] https://github.com/pions/webrtc/wiki/v2.0.0-Release-Notes#media-api
2019-02-25 23:44:09 -08:00
backkem
f5d11df18d API: Review DataChannel
Resolves #427
2019-02-22 15:35:32 +01:00
Yutaka Takeda
32629dbb86 Fix golangci-lint error
Resolves #334
2019-02-18 21:27:31 +01:00
Yutaka Takeda
4dc68ed0da Wire reliability params to datachannel
Resolves #334
2019-02-18 21:27:31 +01:00
Will Watson
8141bba1a1 Enable gocritic and fix reported errors
This change enables the gocritic linter and fixes all reported errors.
2019-02-17 21:35:04 -08:00
Max Hawkins
0647ce9c26 Remove rtc prefix from filenames
Relates to #408
2019-02-17 16:22:56 -08:00