Współpraca klienta sygnalizacji z prostym serwerem sygnalizacyjnym

Co-operation of signalling client with a simple signalling serv-er

  • Agnieszka Chodorek Politechnika Świętokrzyska, Wydział Elektrotechniki, Automatyki i Informatyki, Katedra Elektrotechniki Przemysłowej i Automatyki
  • Robert Chodorek AGH Akademia Górniczo-Hutnicza, Wydział Informatyki, Elektroniki i Telekomunikacji, Katedra Telekomunikacji
Keywords: chat, client-server, JavaScript, session establishment, signalling client, WebRTC


A simple signalling server, written in JavaScript and running in node.js run-time environment, was presented in the previous paper of the Authors [3]. In this paper, principles of building of WebRTC signalling client are presented, as well as exemplary communication between the client and the server, captured with the use of WireShark software tool during experimental WebRTC sessions. The paper includes also an example of application of Internet chat, that uses the simple signalling server [3]. The chat was build in two versions, which uses the same user interface and their signalling systems were build according to the same methodology, but differs in method of transmission of chat messages. The first version transmits user data (text messages of the chat) via signalling server, with the use of signalling channel. This version uses WebSocket interface for transmission of chat messages. In the case of the second version, user data are transmitted directly between web browsers, using WebRTC's channel dedicated for transmission of nonmedia data. This version transmits chat messages with the use of WebRTC's RTCDataChannel interface.


1. Loreto S., Romano S.P., Real-Time Communication with WebRTC: Peer-to-Peer in the Browser, O'Reilly Media, Inc. 2014.
2. Ilya G., High Performance Browser Networking, O'Reilly Media, 2013.
3. Chodorek A., Chodorek R. R, Prosty serwer sygnalizacyjny dla techniki WebRTC z wykorzystaniem środowiska uruchomieniowego node.js, „Autobusy: technika, eksploatacja, systemy transportowe” 2018, nr 12.
4. Fette I., Melnikov A., The WebSocket Protocol, RFC 6455, 2011.
5. The WebSocket API,
6. Chodorek A., Chodorek R. R, Transmisja danych niemedialnych z wykorzystaniem WebRTC, „Autobusy: technika, eksploatacja, systemy transportowe” 2017, nr 6.
7. Loreto S., Romano S.P., How Far are We from WebRTC-1.0? An Update on Standards and a Look at What’s Next, „IEEE Communication Magazine” 2017, vol. 55, no. 7.
8. Rescorla E., WebRTC Security Architecture, draft-ietf-rtcweb-security-arch-17, IETF 2018.
9. Uberti J., Jennings C., Rescorla E. (red.), JavaScript Session Establishment Protocol, draft-ietf-rtcweb-jsep-25, IETF 2018.
10. Jansen B., Goodwin T., Gupta V., Kuipers F., Zussman G., Per-formance Evaluation of WebRTC-based Video Conferencing, „ACM SIGMETRICS Performance Evaluation Review” 2018, vol. 45, no 2.