Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / learning-webrtc_2023-05.md
Last active February 2, 2025 07:02
時雨堂 WebRTC 入門 (講師資料) v2023-05

時雨堂 WebRTC 入門 (講師資料) v2023-05

これは時雨堂が開催しているオンラインイベントである WebRTC 入門の 講師用 の資料であり、 参加者用の資料ではありません。

時雨堂 WebRTC 入門 オンラインイベント

概要

ChatGPT がある今、学ぼうと思えば好きなだけ学べる時代がきています。

@ErikAndreas
ErikAndreas / client.js
Created March 21, 2019 08:40
Azure Functions SignalR service authentication using imperative ("dynamic") binding of userId for negotiate, assuming jwt is set from client using accessTokenFactory. Use case when not using app service authentication.
const connection = new signalR.HubConnectionBuilder()
.withUrl('http://localhost:7071/api/v1.0/messages/binding',
{ accessTokenFactory: () => "aJwtToken" })
.build();
@hogashi
hogashi / scroll-sync.js
Last active July 27, 2024 18:13
scroll original window -> new window will be scrolled synchronously
javascript:(() => {
let adjX = 0,
adjY = 0;
const NORMAL = 'NORMAL',
CHECK = 'CHECK',
ADJUST = 'ADJUST';
const MODES = {
NORMAL: {
nextKey: CHECK,
message: 'press Ctrl-key once more for adjust-mode',
@voluntas
voluntas / webrtc.rst
Last active January 13, 2025 22:40
WebRTC の未来