Commit Graph

17 Commits

Author SHA1 Message Date
Takashi Kannan 008b81dc70
fix: Error on http signaling using short interval (#919)
* add timestamp on getall response

* use timestamp

* remove unused code

* fix newman test

* update package lock

* use same datetime and include sametime by fromtime

* permit change interval on signaling class

* fix test

* fix
2023-07-24 17:21:59 +09:00
Brian Harrison 6522cfcee0
fix: Fix timed out sessions collecting in signaling server (#893)
* fix: Fix timed out sessions collecting in signaling server

* chore: Fix irregular whitespace

* test: Add test for stopping signaling and checking for timed out sessions

* chore: fix build error

* test: Fix breaks due to changing mock signaling

* test: Fix test failiure
2023-04-20 13:09:35 +09:00
Brian Harrison c62166cd3e
fix: Fix sessions lingering after they were timed out (#819)
For checkSessionId, there was a bug where it wasn't using the map syntax for setting the value.
Due to this, _checkDeletedSession wouldn't check if sessions were timedout.

In addition, posting offers after a connection was established would replace the connectionPair.
When the connectionPair is replaced, the code that checks for deleted sessions would no longer be checking the timedout session.
Resending offers occur if a PeerConnection goes into the disconnected state.
2022-12-22 10:04:45 +09:00
Takashi Kannan 897fac35f0
Fix: Handle dead connection for httpsingaling (#768)
* fix deleted connection handle

* fix test

* fix test error

* add test

* fix lint
2022-09-12 12:06:09 +09:00
Takashi Kannan 3d97d101bc
fix: Merged Multiplay sample to Receiver sample (#751)
* delete multiplay folder

* integrate receiver

* fix lint

* create datachannel from each sample

* remove unused method

* create renderstreaming

* fix

* apply renderstreaming to receiver sample

* fix

* fix bidireactional main.js

* Revert "delete multiplay folder"

This reverts commit 2a93ecf02acd115f507ebb2865abf28fee6dccd2.

* revert multiplay sample

* create video player control class

* fix

* fix

* fix

* add jsdoc for method

* addd jsdoc

* change renderstreaming constructor argument

* fix class

* fix

* add renderstreaming.test.js

* fix lint

* fix lint

* set code from each sample

* fix

* fix review

* handle multiplay channel on multiplay/main.js

* remove unused line
2022-09-06 17:23:44 +09:00
Kazuki Matsumoto c8703163d6
fix: Fixed the issue of signaling process when using HTTP mode (#694)
* fix httpsignaling

* workaround

* fix
2022-06-16 15:19:03 +09:00
Takashi Kannan 3c17ade431
feat: add more signalingtest for webserver (#543)
* divide test files

* add private signaling test on httphandler

* add more test about websockethandler

* fix typo

* add semi/jest lint and fix it
2021-10-05 15:16:45 +09:00
Takashi Kannan 4eb8c6052f
feat: Add unittest for webapp using Jest (#541)
* update dependencies packages

* fix parse command line option

* enable esmodule on jest

* define webapp client test job on yamato

* define signaling handler on server

* setup server test

* add jest-websocket-mock

* fix handler argument

* implement basic test for http/wbsocket signaling handler

* fix lint

* fix tsconfig.json

* change linux vm image for webapp job

* fix jest command for win

* fix upm-ci-webapp.yml

* wait more time for running test server

* make client directory for webapp

* add cross env for client test

* fix httphandler on private mode

* fix review
2021-10-04 14:28:23 +09:00
Takashi Kannan 1427230be3
Feat/implement perfectnegotiation webserver (#470)
* implement perfect negotiation on webserver

* fix http/websocket signaling process on unity

* fix and add test

* fix offer process on webserver

* fix furioos signaling on offer

* skip swap transciver test on windows player

* remove onfoundconnection event

* remove readyotherpeer propety from onconnect

* invoke OnReadyOtherConnection onOffer

* use ResendOffer instead of OnReadyOtherPeer

* fix webapp test
2021-05-26 16:18:34 +09:00
Takashi Kannan 0753699507
feat: display server config on webclient (#412)
* update package.json

* create options class

* create config.js

* display config on toppage

* add warning each page

* fix review

* change endpoint name to config

* add test for config

* fix asset path for packing
2021-02-18 15:11:08 +09:00
Takashi Kannan 104dfd8e1c
fix: bidirectional webclient sample (#407)
* fix bidirectional webclient sample

* auto generate videoplayer connectionid

* manage offer/answer with sessionid

* add test not receive own offer/answer

* fix offer flatten

* not response own offer on public mode

* fix web app test

* fix log
2021-02-15 19:41:13 +09:00
Takashi Kannan 7ba8d5e9dd feat: bidirectional communication sample (#359)
* implement private mode

* send connection id on createconnection

* implement unity 1on1 sample

* [wip]fix connection

* [wip] add peerExists flag on connect

* [wip] add disconnect handling

* remove tracks on disconnect

* implement http signaling

* fix session delete

* fix httpsignaling on webapp

* add logging level

* formated ts file

* fix review and test

* change error message

Co-authored-by: Kazuki Matsumoto <1132081+karasusan@users.noreply.github.com>

* fix signaling

* fix erro msg handle

* add private mode signaling test

* move connectionid input to sample cone

* implement videostreambase

* fix videoviewer

* fix 1on1 browser sample

* fix private signaling

* add send/recv texture propety

* fix test check peer exists

* add close connection at test end

* waiting thread and process ending

* remove todo about signaling test

* enable signaling test

* fix webapp copy path

* fix webapp download url generate

* use enviroment variable about webapp location

* add connecctionid check on connect

* change rtx template test to same hdrp test

* ignore signaling test if scripting backend is il2cpp

* add utr timeout argment

* fix receive viewer texture

* use yamato env about webapp name

* 1on1 sample ui handle

* fix websocket msg schema comment

Co-authored-by: Kazuki Matsumoto <1132081+karasusan@users.noreply.github.com>
2021-01-15 10:50:29 +09:00
Kazuki Matsumoto f3a0fa0e18
chore: Updated yamato environments (#321)
* updated yamato environments

* fix build error

* include test folder

* fixed webapp error

* fixed webapp error
2020-08-22 07:06:51 +09:00
kazuki matsumoto de8e4b2109 refactor webapp auto testing 2019-07-06 19:39:32 +09:00
Kazuki Matsumoto 5faf4c1d19 [FIXED] Filter to ignore old requests from signaling server (#40)
* added filter to ignore old requests from signaling server

* added filter to ignore old messages from signaling server on JS scripts

* Added DateTimeExtension class
2019-06-28 16:16:24 +09:00
Kazuki Matsumoto 0611dc29de Fixed: Signaling process bug (#24)
* fixed signaling feature error

* add signaling API `signaling/connection`

* Add Signaling API
2019-06-06 14:08:05 +09:00
Kazuki Matsumoto 1917e965b5 Added Signaling feature (#13)
*  Add signaling web server

add signaling web server

* renamed cmd

* Updated WebApp

* updated build pipeline

* Added C# signaling script

* removed unused file
2019-05-28 00:12:30 +09:00