Get started with jschannel CDN

(MPL-1.1 OR GPL-2.0 OR LGPL-2.1) licensed

JSchannel is a library for establishing secure shell connections in Java.

  • postMessage
  • cross-domain
  • iframe
  • mozilla
  • messaging

Stable version


How to start using jschannel CDN

<!DOCTYPE html>
    <title>Get started with jschannel CDN -</title>
    <script src=""></script>
    <button id="send">Send Message</button>
    <div id="messages"></div>

        const messages = document.getElementById('messages');
        const sendButton = document.getElementById('send');

        const channel = new Jschannel.Channel('my_channel', {
            server: 'http://localhost:8080/ws', // Replace with your WebSocket server URL
            client: {
                onOpen: () => console.log('Channel opened'),
                onMessage: message => messages.innerHTML += `<p>Received: ${}</p>`,
                onClose: () => console.log('Channel closed')

        sendButton.addEventListener('click', () => {
            channel.send('Hello from the client!');

All versions