Hello! I’m building a simple web app that can send preset commands to a CasparCG server via WebSocket and a websockify server to bridge the WebSocket/TCP gap. I have it up and running and am able to send text to a TCP echo server on the same machine, but for some reason, the Caspar server doesn’t see the messages. The server sees the open connection but doesn’t receive messages.
[2020-07-05 17:11:31.459] [23300] [info] ############################################################################
[2020-07-05 17:11:31.459] [23300] [info] CasparCG Server is distributed by the Swedish Broadcasting Corporation (SVT)
[2020-07-05 17:11:31.459] [23300] [info] under the GNU General Public License GPLv3 or higher.
[2020-07-05 17:11:31.460] [23300] [info] Please see LICENSE.TXT for details.
[2020-07-05 17:11:31.460] [23300] [info] http://www.casparcg.com/
[2020-07-05 17:11:31.460] [23300] [info] ############################################################################
[2020-07-05 17:11:31.460] [23300] [info] Starting CasparCG Video and Graphics Playout Server 2.0.7.e9fc25a Stable
[2020-07-05 17:11:31.460] [23300] [info] on Windows 10 Home
[2020-07-05 17:11:31.460] [23300] [info] Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz Physical Threads: 8
[2020-07-05 17:11:31.460] [23300] [info] Z87X-D3H
[2020-07-05 17:11:31.465] [23300] [info] Decklink Not found
[2020-07-05 17:11:31.468] [23300] [info] Bluefish Not found
[2020-07-05 17:11:31.468] [23300] [info] FreeImage 3.15.4
[2020-07-05 17:11:31.469] [23300] [info] FFMPEG-avcodec 55.52.102
[2020-07-05 17:11:31.469] [23300] [info] FFMPEG-avformat 55.33.100
[2020-07-05 17:11:31.469] [23300] [info] FFMPEG-avfilter 4.2.100
[2020-07-05 17:11:31.469] [23300] [info] FFMPEG-avutil 52.66.100
[2020-07-05 17:11:31.469] [23300] [info] FFMPEG-swscale 2.5.102
[2020-07-05 17:11:31.469] [23300] [info] Flash 32.0.0.387
[2020-07-05 17:11:31.470] [23300] [info] flash[cg20.fth.pal|0] Initialized.
[2020-07-05 17:11:31.470] [23300] [info] flash[cg20.fth.pal|0] Invoking info-command: <invoke name="GetInfo" returntype="xml"><arguments></arguments></invoke>
[2020-07-05 17:11:31.593] [9148] [debug] flash-player[cg20.fth.pal|1024x576] [command] <invoke name="OnCommand" returntype="xml"><arguments><string>Command recieved @GetInfo@?@</string></arguments></invoke>
[2020-07-05 17:11:31.662] [9148] [info] flash-player[cg20.fth.pal|1024x576] Initialized.
[2020-07-05 17:11:31.663] [9148] [debug] flash-player[cg20.fth.pal|1024x576] [command] <invoke name="OnCommand" returntype="xml"><arguments><string>Command recieved @GetInfo@?@</string></arguments></invoke>
[2020-07-05 17:11:31.741] [23300] [trace] Template-Host 2.0.4.3803 RC
[2020-07-05 17:11:31.765] [23300] [debug] Loaded C:\Users\cmdch\OneDrive\Documents\CasparCG Server\Server\Processing.AirSend.x86.dll
[2020-07-05 17:11:31.765] [23300] [debug] NewTek iVGA available
[2020-07-05 17:11:31.766] [23300] [info] casparcg.config:
-----------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<paths>
<media-path>media\</media-path>
<log-path>log\</log-path>
<data-path>data\</data-path>
<template-path>C:\Users\cmdch\Documents\AudienceCGs</template-path>
<thumbnails-path>thumbnails\</thumbnails-path>
</paths>
<channels>
<channel>
<video-mode>1080p5994</video-mode>
<consumers>
<newtek-ivga/>
<system-audio/>
</consumers>
</channel>
</channels>
<controllers>
<tcp>
<port>5250</port>
<protocol>AMCP</protocol>
</tcp>
</controllers>
</configuration>
-----------------------------------------
[2020-07-05 17:11:31.766] [23300] [info] Initialized html module.
[2020-07-05 17:11:31.766] [23300] [info] Initializing OpenGL Device.
[2020-07-05 17:11:31.835] [23196] [info] OpenGL 4.6.0 NVIDIA 391.35 NVIDIA Corporation
[2020-07-05 17:11:31.835] [23196] [info] Successfully initialized OpenGL Device.
[2020-07-05 17:11:31.839] [23300] [info] Initialized ffmpeg module.
[2020-07-05 17:11:31.841] [23300] [info] Initialized bluefish module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized decklink module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized oal module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized newtek module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized ogl module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized flash module.
[2020-07-05 17:11:31.842] [23300] [info] Initialized image module.
[2020-07-05 17:11:31.847] [23196] [info] [shader] Blend-modes are disabled.
[2020-07-05 17:11:31.848] [23300] [info] video_channel[1|1080p5994] Successfully Initialized.
[2020-07-05 17:11:31.860] [23300] [info] newtek-ivga[not connected] Successfully Initialized.
[2020-07-05 17:11:31.863] [9148] [info] flash-player[cg20.fth.pal|1024x576] Uninitialized.
[2020-07-05 17:11:31.864] [5396] [info] flash[cg20.fth.pal|5000] Uninitialized.
[2020-07-05 17:11:31.868] [14924] [info] output[1] newtek-ivga[not connected] Added.
[2020-07-05 17:11:31.964] [23300] [info] oal[1|1080p5994] Sucessfully Initialized.
[2020-07-05 17:11:31.980] [14924] [info] output[1] oal[1|1080p5994] Added.
[2020-07-05 17:11:31.980] [23300] [info] Initialized channels.
[2020-07-05 17:11:31.981] [23300] [info] Initialized thumbnail generator.
[2020-07-05 17:11:31.982] [23300] [info] WinSock2 Initialized.
[2020-07-05 17:11:31.982] [23300] [info] Listener successfully initialized
[2020-07-05 17:11:31.982] [23300] [info] Initialized controllers.
[2020-07-05 17:11:31.982] [23300] [info] Initialized osc.
[2020-07-05 17:11:31.982] [23300] [info] Started initial media information retrieval.
[2020-07-05 17:11:32.360] [840] [info] Initial media information retrieval finished.
[2020-07-05 17:12:19.489] [10744] [info] Accepted connection from 127.0.0.1 2
[2020-07-05 17:12:39.718] [10744] [info] Client 127.0.0.1 was disconnected
I’m kind of at a loss here-- WebSocket is set to text and it’s supposed to deliver UTF-8 encoded text. When I open a raw PuTTY connection everything works just fine.
Does anyone have any experience with this?
Here’s a StackOverflow post I made about it with more details.