|
Murmur server: 1.5.857, running in Docker (confirmed working, accessible via Mumble client). Node.js ICE client: using @zeroc/ice 3.8. Goal: Connect the Node.js client to the Murmur server’s ICE interface to control the server, create channels, or manage users programmatically. Problem:
If anyone could help me in
thank you |
Replies: 3 comments 8 replies
|
Hi @Nablusi Can you enable network tracing by setting |
|
I tried connecting to the ICE interface from Node.js using the latest @zeroc/ice package (v3.8.0). When running my test script, I get the following error: ❌ ICE TEST FAILED Could you please advise on how to: Enable network tracing (Ice.Trace.Network=3) in this version. Connect to the Meta interface using Node.js with @zeroc/ice v3.8.0? here is the code import * as Ice from "@zeroc/ice"; async function testICE() { try { } catch (err) { testICE(); |
|
Hi, I am trying to generate JavaScript bindings from my Greeter.ice file using slice2js for Node.js v24 and Ice 3.8+. My Greeter.ice looks like this: // Copyright (c) ZeroC, Inc.
module VisitorCenter
{
/// Represents a simple greeter.
interface Greeter
{
/// Creates a personalized greeting.
/// @param name The name of the person to greet.
/// @return The greeting.
string greet(string name);
}
}
When I run the command: slice2js Greeter.iceit generates a CommonJS-style JS file (Greeter.js) like this: (function(module, require, exports) } Since my package.json has "type": "module", Node.js treats .js files as ESM, so importing this file gives the error: TypeError: Cannot read properties of undefined (reading 'module') I also tried applying the code you gave me: But when I try this, Node.js still fails because the generated Greeter.js is CommonJS, not an ES module. My question: How can I generate ESM-compatible JS/TS from Slice files using slice2js so I can use: import { VisitorCenter } from "./Greeter.js"; without errors in Node.js v24 and Ice 3.8+? Thank you again |
I think the issue is that with your Docker command the
murmur.inifile is not being picked up, so the Ice configuration is never applied.I was able to reproduce and successfully run the JavaScript ICE example by configuring Murmur via environment variables, as described in the image documentation:
https://github.com/mumble-voip/mumble-docker?tab=readme-ov-file#configuration
For example: